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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user