Fixed debug build of the kernel emulation.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user