Execute smp detect code in place instead of copying it.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 7 Dec 2008 00:37:56 +0000 (19:37 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 7 Dec 2008 00:37:56 +0000 (19:37 -0500)
commita06bfb6a5b54f751eb98d2d2df75da6782f34ea5
treed3c10fb5267db11d4065b264c89a57266149696e
parent9e82122e8dcb0e060e0f258e2832032f6a7b99e4
Execute smp detect code in place instead of copying it.

Compile the smp detect handler with the rest of the 16bit code.
Implement a simple ljmpw trampoline so the main code can run in place.
Restore memory afterwards to prevent memory corruption.
Makefile
src/config.h
src/smpdetect.c