Skip to content

Commit

Permalink
Rpi: Convert start.c to cpp
Browse files Browse the repository at this point in the history
* Wrap _start in extern "C" to prevent
  symbol mangling.
* Thanks mmlr for reminding me of this! :)
  • Loading branch information
kallisti5 committed Nov 24, 2012
1 parent dc074b4 commit 7018b3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/system/boot/platform/raspberrypi_arm/Jamfile
Expand Up @@ -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
Expand Down
Expand Up @@ -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>
Expand Down Expand Up @@ -102,7 +102,7 @@ platform_exit(void)
}


void
extern "C" void
_start(void)
{
stage2_args args;
Expand All @@ -128,4 +128,3 @@ _start(void)

main(&args);
}

0 comments on commit 7018b3c

Please sign in to comment.