Changeset a043e39 in mainline for kernel/arch/amd64/src/asm_utils.S


Ignore:
Timestamp:
2010-06-25T04:23:47Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e374ea7
Parents:
06737a0
Message:

Switch amd64 to use the unified panic architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/asm_utils.S

    r06737a0 ra043e39  
    5050.global interrupt_handlers
    5151.global syscall_entry
    52 .global panic_printf
    53 
    54 panic_printf:
    55         movq $halt, (%rsp)
    56         jmp printf
    5752
    5853.global cpuid
     
    232227        cld
    233228
    234         # Stop stack traces here
    235         xorq %rbp, %rbp
     229        #
     230        # Stop stack traces here if we came from userspace.
     231        #
     232        movq %cs, %rax
     233        xorq %rdx, %rdx
     234        cmpq %rax, IREGISTER_SPACE+16(%rsp)
     235        cmovneq %rdx, %rbp
    236236
    237237        movq $(\i), %rdi        # %rdi - first parameter
     
    287287        pushq %rcx
    288288        pushq %r11
     289        pushq %rbp
     290
     291        xorq %rbp, %rbp         # stop the stack traces here
    289292
    290293        movq %r10, %rcx         # Copy the 4th argument where it is expected
     
    293296        addq $8, %rsp
    294297               
     298        popq %rbp
    295299        popq %r11
    296300        popq %rcx
Note: See TracChangeset for help on using the changeset viewer.