summaryrefslogtreecommitdiff
path: root/asm/asm_mp.asm
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-06 01:58:10 +0200
committerMiguel <m.i@gmx.at>2018-09-06 01:58:10 +0200
commitef4943053475cd8bf341c42dd0b538bc630b92a3 (patch)
treeb7f59c937797a0ce0603af9ef46a194d4a64ef22 /asm/asm_mp.asm
parentf67ad595650954195ef064a8b91038dbd0e16842 (diff)
working on smp
Diffstat (limited to 'asm/asm_mp.asm')
-rw-r--r--asm/asm_mp.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/asm/asm_mp.asm b/asm/asm_mp.asm
index c4eb4a9..a2dcee0 100644
--- a/asm/asm_mp.asm
+++ b/asm/asm_mp.asm
@@ -1,7 +1,8 @@
global smp_start
+global LLOCK
extern smp_main
+
; master boot record for application processors
-;[org 0x7000]
smp_start:
[bits 16]
@@ -41,6 +42,9 @@ boot_32_pm:
cmp eax,1
je boot_32_pm
+ mov ebp, 0x7000
+ mov esp, ebp
+
call smp_main
jmp $ ; should never be reached