Skip to content

Commit

Permalink
arm: Move spin() stub to the raspberry_pi cpu.cpp
Browse files Browse the repository at this point in the history
This unbreaks the U-Boot build, since we already have spin()
in cpu.cpp there, for future implementation using the U-Boot API.
  • Loading branch information
mmuman committed Dec 1, 2012
1 parent f2e7bd1 commit 218af29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/system/boot/arch/arm/kernel_stubs.cpp
Expand Up @@ -33,12 +33,6 @@ kgetc()
}


extern "C" void
spin(bigtime_t time)
{
}


extern "C" status_t
_mutex_lock(mutex*, bool)
{
Expand Down
8 changes: 8 additions & 0 deletions src/system/boot/platform/raspberrypi_arm/cpu.cpp
Expand Up @@ -6,6 +6,14 @@

#include "arch_cpu.h"

extern "C" void
spin(bigtime_t microseconds)
{
// fallback to arch-specific code
arch_spin(microseconds);
}


extern "C" void
cpu_init()
{
Expand Down

0 comments on commit 218af29

Please sign in to comment.