Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79
b: refs/heads/master
c: b957591
h: refs/heads/master
i:
  77: 39c7421
  75: 8a5ab84
  71: 7d40d27
  63: decae11
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Apr 16, 2005
1 parent e1b26e5 commit 24906a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1290ec93e5da4a748ca4758a00b580283e06596
refs/heads/master: b957591fee753101f289615abab1c54ff7b1d29d
8 changes: 8 additions & 0 deletions trunk/arch/x86_64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,22 @@ init_rsp:
.quad init_thread_union+THREAD_SIZE-8

ENTRY(early_idt_handler)
cmpl $2,early_recursion_flag(%rip)
jz 1f
incl early_recursion_flag(%rip)
xorl %eax,%eax
movq 8(%rsp),%rsi # get rip
movq (%rsp),%rdx
movq %cr2,%rcx
leaq early_idt_msg(%rip),%rdi
call early_printk
cmpl $2,early_recursion_flag(%rip)
jz 1f
call dump_stack
1: hlt
jmp 1b
early_recursion_flag:
.long 0

early_idt_msg:
.asciz "PANIC: early exception rip %lx error %lx cr2 %lx\n"
Expand Down

0 comments on commit 24906a7

Please sign in to comment.