Changeset e3038b4 in mainline for kernel/arch/amd64/src/asm_utils.S
- Timestamp:
- 2010-06-28T22:45:51Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49eb681
- Parents:
- 05e3cb8 (diff), e4a4b44 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm_utils.S
r05e3cb8 re3038b4 51 51 .global interrupt_handlers 52 52 .global syscall_entry 53 .global panic_printf54 55 panic_printf:56 movabsq $halt, %rax57 movq %rax, (%rsp)58 jmp printf59 60 53 .global cpuid 61 54 .global has_cpuid … … 234 227 save_all_gpr 235 228 cld 236 237 # Stop stack traces here 238 xorq %rbp, %rbp 239 240 movq $(\i), %rdi # %rdi - first parameter 241 movq %rsp, %rsi # %rsi - pointer to istate 242 call exc_dispatch # exc_dispatch(i, istate) 229 230 # 231 # Stop stack traces here if we came from userspace. 232 # 233 movq %cs, %rax 234 xorq %rdx, %rdx 235 cmpq %rax, IREGISTER_SPACE+16(%rsp) 236 cmovneq %rdx, %rbp 237 238 movq $(\i), %rdi # %rdi - first parameter 239 movq %rsp, %rsi # %rsi - pointer to istate 240 call exc_dispatch # exc_dispatch(i, istate) 243 241 244 242 restore_all_gpr … … 290 288 pushq %rcx 291 289 pushq %r11 292 293 movq %r10, %rcx # Copy the 4th argument where it is expected 290 pushq %rbp 291 292 xorq %rbp, %rbp # stop the stack traces here 293 294 movq %r10, %rcx # Copy the 4th argument where it is expected 294 295 pushq %rax 295 296 call syscall_handler 296 297 addq $8, %rsp 297 298 299 popq %rbp 298 300 popq %r11 299 301 popq %rcx
Note:
See TracChangeset
for help on using the changeset viewer.