Changeset 522 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS
- Timestamp:
- Mar 11, 2013, 3:22:21 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/ModuleDependency.inc
r493 r522 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 18 ; 19 20 ; Allow RELOCATE_INT13H_STACK only for AT builds 21 %ifndef USE_AT 22 %undef RELOCATE_INT13H_STACK 23 %endif 24 19 25 20 26 %ifdef MODULE_SERIAL_FLOPPY -
trunk/XTIDE_Universal_BIOS/Inc/RamVars.inc
r505 r522 37 37 struc RAMVARS 38 38 %ifdef RELOCATE_INT13H_STACK 39 resb 256 ; Size of our stack 40 .rgbTopOfStack: 39 41 .fpInt13hEntryStack resb 4 40 42 .dwStackChangeDSDI: 41 43 .wStackChangeDI resb 2 42 44 .wStackChangeDS resb 2 43 .wNewStackOffset resb 244 45 %endif 45 46 .wDrvDetectSignature: ; Signature when BIOS is in drive detection mode -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm
r507 r522 50 50 mov di, ds ; We do not want to overwrite DS and DI in stack 51 51 mov ss, di 52 mov sp, [RAMVARS.wNewStackOffset]52 mov sp, RAMVARS.rgbTopOfStack 53 53 lds di, [RAMVARS.dwStackChangeDSDI] 54 54 -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm
r501 r522 80 80 81 81 mov al, BIOS_DISK_INTERRUPT_13h ; INT 13h interrupt vector offset 82 %ifdef RELOCATE_INT13H_STACK 83 mov si, Int13h_DiskFunctionsHandlerWithStackChange 84 %else 82 85 mov si, Int13h_DiskFunctionsHandler 83 %ifdef RELOCATE_INT13H_STACK84 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE85 eCMOVNZ si, Int13h_DiskFunctionsHandlerWithStackChange86 86 %endif 87 87 -
trunk/XTIDE_Universal_BIOS/Src/Main.asm
r507 r522 46 46 ; Included .inc files 47 47 %include "AssemblyLibrary.inc" ; Assembly Library. Must be included first! 48 %include "ModuleDependency.inc" ; Dependency checks for optional modules 48 %include "ModuleDependency.inc" ; Dependency checks for optional modules. Must be included second! 49 49 %include "Version.inc" 50 50 %include "ATA_ID.inc" ; For ATA Drive Information structs -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/FindDPT.asm
r521 r522 116 116 117 117 mul dl 118 add ax, BYTE RAMVARS_size; Clears CF (will not overflow)118 add ax, RAMVARS_size ; Clears CF (will not overflow) 119 119 120 120 pop dx -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r505 r522 77 77 mov WORD [RAMVARS.wDrvDetectSignature], RAMVARS_DRV_DETECT_SIGNATURE 78 78 mov WORD [RAMVARS.wSignature], RAMVARS_RAM_SIGNATURE 79 ; Fall to .InitializeInt13hStackChangeVariables80 81 ;--------------------------------------------------------------------82 ; .InitializeInt13hStackChangeVariables83 ; Parameters:84 ; DS: RAMVARS segment85 ; Returns:86 ; Nothing87 ; Corrupts registers:88 ; AX89 ;--------------------------------------------------------------------90 %ifdef RELOCATE_INT13H_STACK91 .InitializeInt13hStackChangeVariables:92 eMOVZX ax, BYTE [cs:ROMVARS.bStealSize]93 eSHL_IM ax, 10 ; kiB to Bytes = Top of stack offset94 mov [RAMVARS.wNewStackOffset], ax95 %endif96 97 79 ;; There used to be a DriveXlate_Reset call here. It isn't necessary, as we reset 98 80 ;; when entering the boot menu and also before transferring control at boot time and -
trunk/XTIDE_Universal_BIOS/makefile
r511 r522 30 30 # Not modules but these affect the assembly: # 31 31 # ELIMINATE_CGA_SNOW Prevents CGA snowing at the cost of a few bytes # 32 # RELOCATE_INT13H_STACK Relocates INT 13h stack to top of stolen conventional memory#32 # RELOCATE_INT13H_STACK ** Relocates INT 13h stack to beginning of stolen conventional memory # 33 33 # RESERVE_DIAGNOSTIC_CYLINDER Reserve one L-CHS cylinder for compatibility with old BIOSes # 34 34 # USE_186 Use instructions supported by 80188/80186 and V20/V30 and later # … … 38 38 # USE_UNDOC_INTEL Optimizations for Intel CPU:s - do NOT use on NEC V20/V30/Sony CPU:s # 39 39 # # 40 # ** AT Builds only (when USE_AT is defined) # 40 41 #################################################################################################### 41 42
Note:
See TracChangeset
for help on using the changeset viewer.