Rev 1246 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1246 | Rev 1780 | ||
|---|---|---|---|
| Line 67... | Line 67... | ||
| 67 | .code32 |
67 | .code32 |
| 68 | movw $KDATA, %ax |
68 | movw $KDATA, %ax |
| 69 | movw %ax, %ds |
69 | movw %ax, %ds |
| 70 | movw %ax, %es |
70 | movw %ax, %es |
| 71 | movw %ax, %ss |
71 | movw %ax, %ss |
| 72 | movl $KA2PA(ctx), %eax # KA2PA((__address) &ctx) |
72 | movl $KA2PA(ctx), %eax # KA2PA((uintptr_t) &ctx) |
| 73 | movl (%eax), %esp |
73 | movl (%eax), %esp |
| 74 | subl $0x80000000, %esp # KA2PA(ctx.sp) |
74 | subl $0x80000000, %esp # KA2PA(ctx.sp) |
| 75 | 75 | ||
| 76 | call map_kernel # map kernel and turn paging on |
76 | call map_kernel # map kernel and turn paging on |
| 77 | 77 | ||