lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since ccb426c was 421c833, checked in by Martin Decky <martin@…>, 17 years ago |
|
parse VESA mode from a string
unify VESA initialization for ia32 and amd64
|
-
Property mode
set to
100644
|
|
File size:
481 bytes
|
| Line | |
|---|
| 1 | .code32
|
|---|
| 2 | vesa_init_protected:
|
|---|
| 3 | movw $gdtselector(KDATA_DES), %cx
|
|---|
| 4 | movw %cx, %es
|
|---|
| 5 | movw %cx, %ds # kernel data + stack
|
|---|
| 6 | movw %cx, %ss
|
|---|
| 7 |
|
|---|
| 8 | #
|
|---|
| 9 | # Simics seems to remove hidden part of GS on entering user mode
|
|---|
| 10 | # when _visible_ part of GS does not point to user-mode segment.
|
|---|
| 11 | #
|
|---|
| 12 |
|
|---|
| 13 | movw $gdtselector(UDATA_DES), %cx
|
|---|
| 14 | movw %cx, %fs
|
|---|
| 15 | movw %cx, %gs
|
|---|
| 16 |
|
|---|
| 17 | movl $START_STACK, %esp # initialize stack pointer
|
|---|
| 18 |
|
|---|
| 19 | jmpl $gdtselector(KTEXT32_DES), $vesa_meeting_point
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.