Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18022
b: refs/heads/master
c: 983d5db
h: refs/heads/master
v: v3
  • Loading branch information
Vivek Goyal authored and Linus Torvalds committed Jan 12, 2006
1 parent 03e38be commit 9cfa301
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: 0d9cb75f2f41788a59bcd3dac30b264a4bebaf2e
refs/heads/master: 983d5dbdb2b38d024935f560a91cddcf704875f3
11 changes: 9 additions & 2 deletions trunk/arch/x86_64/kernel/trampoline.S
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ r_base = .
movl $0xA5A5A5A5, trampoline_data - r_base
# write marker for master knows we're running

lidt idt_48 - r_base # load idt with 0, 0
lgdt gdt_48 - r_base # load gdt with whatever is appropriate
/*
* GDT tables in non default location kernel can be beyond 16MB and
* lgdt will not be able to load the address as in real mode default
* operand size is 16bit. Use lgdtl instead to force operand size
* to 32 bit.
*/

lidtl idt_48 - r_base # load idt with 0, 0
lgdtl gdt_48 - r_base # load gdt with whatever is appropriate

xor %ax, %ax
inc %ax # protected mode (PE) bit
Expand Down

0 comments on commit 9cfa301

Please sign in to comment.