source:
mainline/kernel/arch/amd64/src/boot/vesa_ret.inc@
cee51fd
Last change on this file since cee51fd was 1d3d2cf, checked in by , 15 years ago | |
---|---|
|
|
File size: 472 bytes |
Rev | Line | |
---|---|---|
[421c833] | 1 | .code32 |
2 | vesa_init_protected: | |
[873c681] | 3 | cld |
4 | ||
5 | /* Initialize stack pointer */ | |
6 | movl $START_STACK, %esp | |
7 | ||
8 | /* Kernel data + stack */ | |
[1d3d2cf] | 9 | movw $GDT_SELECTOR(KDATA_DES), %cx |
[421c833] | 10 | movw %cx, %es |
[873c681] | 11 | movw %cx, %ds |
[421c833] | 12 | movw %cx, %ss |
13 | ||
[873c681] | 14 | /* |
15 | * Simics seems to remove hidden part of GS on entering user mode | |
16 | * when _visible_ part of GS does not point to user-mode segment. | |
17 | */ | |
[421c833] | 18 | |
[1d3d2cf] | 19 | movw $GDT_SELECTOR(UDATA_DES), %cx |
[421c833] | 20 | movw %cx, %fs |
21 | movw %cx, %gs | |
22 | ||
[1d3d2cf] | 23 | jmpl $GDT_SELECTOR(KTEXT32_DES), $vesa_meeting_point |
Note:
See TracBrowser
for help on using the repository browser.