Add infrastructure to support access to .data16 (and .text16) variables

from protected-mode code.

Set up %ds to point to .data16 in prot_to_real, so that code specified
via REAL_EXEC() and friends can access variables in .data16.

Move most real-mode librm variables from .text16 to .data16.
This commit is contained in:
Michael Brown
2006-05-04 23:14:06 +00:00
parent f4429533a6
commit 832807726a
2 changed files with 124 additions and 75 deletions
+3 -2
View File
@@ -336,6 +336,7 @@ install_prealloc:
call install_highmem
/* Continue executing in .text16 segment */
movw %bx, %ds
pushw %cs
pushw $2f
pushw %ax
@@ -344,11 +345,11 @@ install_prealloc:
.section ".text16", "awx", @progbits
1:
/* Set up protected-mode GDT, call relocate(), reset GDT */
call init_gdt
call init_librm
pushl $relocate
data32 call prot_call
addw $4, %sp
call init_gdt
call init_librm
/* Return to executing in .prefix section */
lret