diff options
author | AlmuHS <almuhs@github.com> | 2019-04-21 14:30:59 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-21 14:30:59 +0200 |
commit | eb6a51ec7c49fb689666f516bbc9f0fd6cbc443e (patch) | |
tree | bda3f7b3888109b64f58eb27eb5719298225652c /i386/i386/cpuboot.S | |
parent | f7d6fcac994e7030719432016b7909421e0fa2fc (diff) |
revert add interrupt stack
Diffstat (limited to 'i386/i386/cpuboot.S')
-rw-r--r-- | i386/i386/cpuboot.S | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index 3fbc450e..876966fb 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -39,6 +39,9 @@ boot_gdt: .bss .p2align 4 + .globl stack_bsp + .comm stack_bsp, STACK_SIZE + #define M(addr) (addr - apboot + 0x7000) @@ -89,35 +92,17 @@ _apboot: movw %ax,%es movw %ax,%ss + movl stack_ptr, %esp addl $STACK_SIZE, %esp - /* Switch to our own interrupt stack. */ - movl $_intstack+INTSTACK_SIZE,%esp - - /* Reset EFLAGS to a known state. */ pushl $0 popf -iplt_cont: - cmpl %edi,%esi - jae iplt_done - movl (%esi),%ebx /* r_offset */ - movb 4(%esi),%al /* info */ - cmpb $42,%al /* IRELATIVE */ - jnz iplt_next - call *(%ebx) /* call ifunc */ - movl %eax,(%ebx) /* fixed address */ -iplt_next: - addl $8,%esi - jmp iplt_cont - -iplt_done: pushl stack_ptr call cpu_ap_main - .comm _intstack,INTSTACK_SIZE cli |