Rev 347 | Rev 417 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 347 | Rev 406 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | # switch to protected mode. |
46 | # switch to protected mode. |
47 | # |
47 | # |
48 | 48 | ||
49 | #define START_STACK (BOOTSTRAP_OFFSET-0x400) |
49 | #define START_STACK (BOOTSTRAP_OFFSET-0x400) |
50 | 50 | ||
51 | .section K_TEXT_START |
51 | .section K_TEXT_START, "ax" |
52 | .code16 |
52 | .code16 |
53 | .global kernel_image_start |
53 | .global kernel_image_start |
54 | kernel_image_start: |
54 | kernel_image_start: |
55 | cli |
55 | cli |
56 | xorw %ax,%ax |
56 | xorw %ax,%ax |
Line 135... | Line 135... | ||
135 | 135 | ||
136 | call main_bsp # never returns |
136 | call main_bsp # never returns |
137 | 1: |
137 | 1: |
138 | jmp 1b |
138 | jmp 1b |
139 | 139 | ||
140 | .section K_DATA_START |
140 | .section K_DATA_START, "aw", @progbits |
141 | .align 4096 |
141 | .align 4096 |
142 | 142 | ||
143 | # Identical mapping of first 16MB and the same of -2GB -> 0 |
143 | # Identical mapping of first 16MB and the same of -2GB -> 0 |
144 | .global ptl_2 |
144 | .global ptl_2 |
145 | ptl_2: |
145 | ptl_2: |