Changeset 243 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
- Timestamp:
- Feb 10, 2012, 2:00:50 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r241 r243 56 56 ; STORE_POST_STACK_POINTER 57 57 ; Parameters: 58 ; DS: BDA and Interrupt Vector segment (zero)58 ; ES: BDA and Interrupt Vector segment (zero) 59 59 ; Returns: 60 60 ; Nothing … … 63 63 ;-------------------------------------------------------------------- 64 64 %macro STORE_POST_STACK_POINTER 0 65 mov [ BOOTVARS.dwPostStack], sp66 mov [ BOOTVARS.dwPostStack+2], ss65 mov [es:BOOTVARS.dwPostStack], sp 66 mov [es:BOOTVARS.dwPostStack+2], ss 67 67 %endmacro 68 68 … … 102 102 ; Restores SS and SP to initial boot loader values. 103 103 ; 104 ; Before doing any changes, see the note regarding105 ; LOAD_BDA_SEGMENT_TO in BootVars_SwitchToBootMenuStack104 ; Note! Must return with AX=0 and CF preserved. 105 ; See Int19hMenu_JumpToBootSector_or_RomBoot. 106 106 ; 107 107 ; SWITCH_BACK_TO_POST_STACK 108 108 ; Parameters: 109 ; Nothing109 ; AX: BDA and Interrupt Vector segment (zero) 110 110 ; Returns: 111 111 ; SS:SP: Ptr to POST stack 112 112 ; Corrupts registers: 113 ; Nothing 113 ; Nothing (not even FLAGS) 114 114 ;-------------------------------------------------------------------- 115 115 %macro SWITCH_BACK_TO_POST_STACK 0 116 116 %ifndef USE_386 117 cli ; Disable interrupts118 LOAD_BDA_SEGMENT_TO ss, sp117 cli 118 mov ss, ax 119 119 mov sp, [ss:BOOTVARS.dwPostStack] 120 120 mov ss, [ss:BOOTVARS.dwPostStack+2] 121 sti ; Enable interrupts121 sti 122 122 %else 123 LOAD_BDA_SEGMENT_TO ss, sp123 mov ss, ax 124 124 lss sp, [ss:BOOTVARS.dwPostStack] 125 %endif 125 %endif 126 126 %endmacro 127 127
Note: See TracChangeset
for help on using the changeset viewer.