Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305433
b: refs/heads/master
c: 84f4fc5
h: refs/heads/master
i:
  305431: 6db9ce0
v: v3
  • Loading branch information
H. Peter Anvin authored and H. Peter Anvin committed Apr 19, 2012
1 parent d54147b commit 228ea23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46326013e34eb5c178a91f06c1f2e99e79eed924
refs/heads/master: 84f4fc524eed040660bd4ebc8cba259d8afe8461
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@

#define IDT_ENTRIES 256
#define NUM_EXCEPTION_VECTORS 32
/* Bitmask of exception vectors which push an error code on the stack */
#define EXCEPTION_ERRCODE_MASK 0x00027d00
#define GDT_SIZE (GDT_ENTRIES * 8)
#define GDT_ENTRY_TLS_ENTRIES 3
#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ ENTRY(early_idt_handler)
ja 0f
movl $1,%eax
salq %cl,%rax
testl $0x27d00,%eax
testl $EXCEPTION_ERRCODE_MASK,%eax
je 0f
popq %r8 # get error code
0: movq 0(%rsp),%rcx # get ip
Expand Down

0 comments on commit 228ea23

Please sign in to comment.