Fix platform.h for C compilation

Allow platform.h to be used by POC files

Change-Id: I809749422e12f4c4b2c616ca0994b158f3cd054c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4251
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
beaglejoe
2026-01-04 07:24:21 +00:00
committed by Adrien Destugues
parent 64f088f495
commit 3f38072551
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -43,7 +43,6 @@ extern void platform_switch_to_logo(void);
extern void platform_switch_to_text_mode(void); extern void platform_switch_to_text_mode(void);
extern void platform_start_kernel(void); extern void platform_start_kernel(void);
extern void platform_exit(void); extern void platform_exit(void);
extern void platform_load_ucode(BootVolume& volume);
#ifdef __cplusplus #ifdef __cplusplus
} }
@@ -63,6 +62,7 @@ extern status_t platform_get_boot_partitions(struct stage2_args *args, Node *boo
NodeList *partitions, NodeList *bootPartitions); NodeList *partitions, NodeList *bootPartitions);
extern status_t platform_register_boot_device(Node *device); extern status_t platform_register_boot_device(Node *device);
extern void platform_cleanup_devices(); extern void platform_cleanup_devices();
extern void platform_load_ucode(BootVolume& volume);
/* menu functions */ /* menu functions */
+1 -1
View File
@@ -106,7 +106,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
} }
+1 -1
View File
@@ -131,7 +131,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
} }
+1 -1
View File
@@ -72,7 +72,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
arch_ucode_load(volume); arch_ucode_load(volume);
+1 -1
View File
@@ -48,7 +48,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
arch_ucode_load(volume); arch_ucode_load(volume);
+1 -1
View File
@@ -87,7 +87,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
} }
@@ -7,7 +7,7 @@
#include <boot/platform.h> #include <boot/platform.h>
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
} }
+1 -1
View File
@@ -42,7 +42,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
// we have no ucode // we have no ucode
+1 -1
View File
@@ -37,7 +37,7 @@ cpu_init()
} }
extern "C" void void
platform_load_ucode(BootVolume& volume) platform_load_ucode(BootVolume& volume)
{ {
} }