Rev 1242 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1242 | Rev 1246 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | .code16 |
54 | .code16 |
55 | cli |
55 | cli |
56 | xorw %ax, %ax |
56 | xorw %ax, %ax |
57 | movw %ax, %ds |
57 | movw %ax, %ds |
58 | 58 | ||
59 | lgdt ap_gdtr # initialize Global Descriptor Table register |
59 | lgdtl ap_gdtr # initialize Global Descriptor Table register |
60 | 60 | ||
61 | movl %cr0, %eax |
61 | movl %cr0, %eax |
62 | orl $1, %eax |
62 | orl $1, %eax |
63 | movl %eax, %cr0 # switch to protected mode |
63 | movl %eax, %cr0 # switch to protected mode |
64 | jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET |
64 | jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET |