Rev 1052 | Rev 1289 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1052 | Rev 1063 | ||
---|---|---|---|
Line 172... | Line 172... | ||
172 | 172 | ||
173 | mods_loop: |
173 | mods_loop: |
174 | 174 | ||
175 | xorq %rdx, %rdx |
175 | xorq %rdx, %rdx |
176 | movl 0(%esi), %edx # mods->mod_start |
176 | movl 0(%esi), %edx # mods->mod_start |
177 | addq $0xffffffff80000000, %rdx |
177 | movq $0xffff800000000000, %r10 |
- | 178 | addq %r10, %rdx |
|
178 | movq %rdx, 8(%rdi) |
179 | movq %rdx, 8(%rdi) |
179 | 180 | ||
180 | xorq %rdx, %rdx |
181 | xorq %rdx, %rdx |
181 | movl 4(%esi), %edx |
182 | movl 4(%esi), %edx |
182 | subl 0(%esi), %edx # mods->mod_end - mods->mod_start |
183 | subl 0(%esi), %edx # mods->mod_end - mods->mod_start |
Line 301... | Line 302... | ||
301 | 302 | ||
302 | .align 4096 |
303 | .align 4096 |
303 | .global ptl_0 |
304 | .global ptl_0 |
304 | ptl_0: |
305 | ptl_0: |
305 | .quad ptl_1 + (PTL_WRITABLE | PTL_PRESENT) |
306 | .quad ptl_1 + (PTL_WRITABLE | PTL_PRESENT) |
306 | .fill 510,8,0 |
307 | .fill 255,8,0 |
- | 308 | .quad ptl_1 + (PTL_WRITABLE | PTL_PRESENT) |
|
- | 309 | .fill 254,8,0 |
|
307 | .quad ptl_1 + (PTL_WRITABLE | PTL_PRESENT) |
310 | .quad ptl_1 + (PTL_WRITABLE | PTL_PRESENT) |
308 | 311 | ||
309 | .global bootstrap_gdtr |
312 | .global bootstrap_gdtr |
310 | bootstrap_gdtr: |
313 | bootstrap_gdtr: |
311 | .word gdtselector(GDT_ITEMS) |
314 | .word gdtselector(GDT_ITEMS) |