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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 42da5ed was f1380b7, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 8 years ago

style: Remove trailing whitespace on _all_ lines, including empty ones, remaining files.

  • Property mode set to 100644
File size: 472 bytes
RevLine 
[421c833]1.code32
2vesa_init_protected:
[f66c203d]3 cli
[873c681]4 cld
[f1380b7]5
[873c681]6 /* Initialize stack pointer */
7 movl $START_STACK, %esp
[f1380b7]8
[873c681]9 /* Kernel data + stack */
[1d3d2cf]10 movw $GDT_SELECTOR(KDATA_DES), %cx
[421c833]11 movw %cx, %es
[873c681]12 movw %cx, %ds
[421c833]13 movw %cx, %ss
[f1380b7]14
[873c681]15 /*
16 * Simics seems to remove hidden part of GS on entering user mode
17 * when _visible_ part of GS does not point to user-mode segment.
18 */
[f1380b7]19
[1d3d2cf]20 movw $GDT_SELECTOR(UDATA_DES), %cx
[421c833]21 movw %cx, %fs
22 movw %cx, %gs
[f1380b7]23
[1d3d2cf]24 jmpl $GDT_SELECTOR(KTEXT32_DES), $vesa_meeting_point
Note: See TracBrowser for help on using the repository browser.