diff options
author | AlmuHS <almuhs@github.com> | 2019-05-01 18:03:00 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-05-01 18:03:00 +0200 |
commit | f20d4c91dcae6c281c8e6d66329ac1cb9774aaa8 (patch) | |
tree | daf31d4e190781b436c1dfba0c772820f3a7e13b | |
parent | 559f518f8dd78d19e198ef57f7e5a0ed50262a17 (diff) |
try to fix: moved stack_ptr declaration to C code
-rw-r--r-- | i386/i386/cpuboot.S | 2 | ||||
-rw-r--r-- | i386/i386/mp_desc.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index 428277fa..ecda60dd 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -44,7 +44,7 @@ boot_gdt: #define M(addr) (addr - apboot + 0x7000) .text - .globl apboot, apbootend, stack_ptr + .globl apboot, apbootend .align 0x10 .code16 diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 0bca1672..b69b557f 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -129,8 +129,7 @@ extern void* *apboot, *apbootend; #define AP_BOOT_ADDR (0x7000) //cpu stack -extern void* stack_ptr; -extern void **stack_bsp; +void* stack_ptr = 0; //ICR Destination mode #define PHYSICAL 0 |