source: mainline/kernel/arch/amd64/src/boot/vesa_ret.inc@ ecf083dd

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ecf083dd was 873c681, checked in by Martin Decky <martin@…>, 16 years ago

initial support for early kernel debugging prints
use C comments in C-preprocessed assembler files (to avoid confusion between assembler comments and preprocessor directives)

  • Property mode set to 100644
File size: 469 bytes
RevLine 
[421c833]1.code32
2vesa_init_protected:
[873c681]3 cld
4
5 /* Initialize stack pointer */
6 movl $START_STACK, %esp
7
8 /* Kernel data + stack */
[421c833]9 movw $gdtselector(KDATA_DES), %cx
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
19 movw $gdtselector(UDATA_DES), %cx
20 movw %cx, %fs
21 movw %cx, %gs
22
23 jmpl $gdtselector(KTEXT32_DES), $vesa_meeting_point
Note: See TracBrowser for help on using the repository browser.