Rev 110 | Rev 113 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 110 | Rev 112 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | 52 | ||
53 | lgdt gdtr |
53 | lgdt gdtr |
54 | movl %cr0,%eax |
54 | movl %cr0,%eax |
55 | orl $1,%eax |
55 | orl $1,%eax |
56 | movl %eax,%cr0 |
56 | movl %eax,%cr0 |
57 | jmp 0f |
- | |
58 | 0: |
- | |
59 | ljmp $KTEXT,$jump_to_kernel |
57 | jmpl $KTEXT,$jump_to_kernel |
60 | - | ||
61 | # this is where the AP enters the kernel space |
- | |
62 | jump_to_kernel: |
58 | jump_to_kernel: |
63 | .code32 |
59 | .code32 |
64 | movw $KDATA,%ax |
60 | movw $KDATA,%ax |
65 | movw %ax,%ds |
61 | movw %ax,%ds |
66 | movw %ax,%es |
62 | movw %ax,%es |