Fixed debug build of the kernel emulation.

This commit is contained in:
Axel Dörfler
2012-03-31 21:27:55 +02:00
parent 484afd3a08
commit 7a085ce095
2 changed files with 33 additions and 0 deletions
@@ -13,6 +13,7 @@ SharedLibrary libkernelland_emu.so :
module.cpp
scheduler.cpp
slab.cpp
smp.cpp
vm.cpp
khash.cpp
@@ -0,0 +1,32 @@
/*
* Copyright 2012, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
//! This is only needed for the debug build.
#include <cpu.h>
#include <smp.h>
#ifdef acquire_spinlock
# undef acquire_spinlock
#endif
cpu_ent gCPU[8];
extern "C" void
acquire_spinlock(spinlock* lock)
{
}
extern "C" int32
smp_get_current_cpu()
{
return 0;
}