Rpi: Convert start.c to cpp
* Wrap _start in extern "C" to prevent symbol mangling. * Thanks mmlr for reminding me of this! :)
This commit is contained in:
@@ -22,7 +22,7 @@ SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons accelerants common ] ;
|
|||||||
|
|
||||||
BootMergeObject boot_platform_raspberrypi_arm.o :
|
BootMergeObject boot_platform_raspberrypi_arm.o :
|
||||||
entry.S
|
entry.S
|
||||||
start.c
|
start.cpp
|
||||||
console.cpp
|
console.cpp
|
||||||
cpu.cpp
|
cpu.cpp
|
||||||
debug.cpp
|
debug.cpp
|
||||||
|
|||||||
+2
-3
@@ -15,7 +15,7 @@
|
|||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#include <boot/platform.h>
|
#include <boot/platform.h>
|
||||||
#include <boot/heap.h>
|
#include <boot/heap.h>
|
||||||
//#include <boot/stage2.h>
|
#include <boot/stage2.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -102,7 +102,7 @@ platform_exit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
extern "C" void
|
||||||
_start(void)
|
_start(void)
|
||||||
{
|
{
|
||||||
stage2_args args;
|
stage2_args args;
|
||||||
@@ -128,4 +128,3 @@ _start(void)
|
|||||||
|
|
||||||
main(&args);
|
main(&args);
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user