Skip to content
Snippets Groups Projects
Commit b8d2411d authored by Martin Karsten's avatar Martin Karsten
Browse files

- fixed bug in KOS exposed by recent changes

parent c56e9d4e
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,7 @@ void Machine::initBSP(mword magic, vaddr mbiAddr, mword idx) { ...@@ -143,6 +143,7 @@ void Machine::initBSP(mword magic, vaddr mbiAddr, mword idx) {
KernelHeap::init0( (vaddr)bootHeap, sizeof(bootHeap) ); KernelHeap::init0( (vaddr)bootHeap, sizeof(bootHeap) );
// set up boot processor for lock counter -> output/malloc uses spinlock // set up boot processor for lock counter -> output/malloc uses spinlock
new (&kernelCluster) Cluster; // run constructor now (reset & run again later)
static buf_t bpDummy[sizeof(KernelProcessor)] __section(".boot.data"); static buf_t bpDummy[sizeof(KernelProcessor)] __section(".boot.data");
KernelProcessor* bootProcessor = new (bpDummy) KernelProcessor(kernelCluster); KernelProcessor* bootProcessor = new (bpDummy) KernelProcessor(kernelCluster);
bootProcessor->install(); bootProcessor->install();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment