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:
Alexander von Gluck IV 2012-11-24 08:09:01 -06:00
parent dc074b4512
commit 7018b3c67e
2 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@ SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons accelerants common ] ;
BootMergeObject boot_platform_raspberrypi_arm.o :
entry.S
start.c
start.cpp
console.cpp
cpu.cpp
debug.cpp

View File

@ -15,7 +15,7 @@
#include <KernelExport.h>
#include <boot/platform.h>
#include <boot/heap.h>
//#include <boot/stage2.h>
#include <boot/stage2.h>
#include <arch/cpu.h>
#include <string.h>
@ -102,7 +102,7 @@ platform_exit(void)
}
void
extern "C" void
_start(void)
{
stage2_args args;
@ -128,4 +128,3 @@ _start(void)
main(&args);
}