Changeset 90 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
- Timestamp:
- Jan 27, 2011, 11:31:31 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r84 r90 1 ; File name : Int19h.asm 2 ; Project name : IDE BIOS 3 ; Created date : 3.8.2007 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 1 ; Project name : XTIDE Universal BIOS 7 2 ; Description : Int 19h BIOS functions (Boot Strap Loader). 8 3 … … 12 7 B_READ_RETRY_TIMES EQU 3 ; Number of times to retry 13 8 14 15 ;--------------------------------------------------------------------16 ; Int 19h software interrupt handler for late initialization.17 ; Calls actual Int 19h after initialization is complete.18 ;19 ; Int19h_LateInitialization20 ; Parameters:21 ; Nothing22 ; Returns:23 ; Never returns24 ;--------------------------------------------------------------------25 ALIGN JUMP_ALIGN26 Int19h_LateInitialization:27 call Initialize_ShouldSkip ; Skip initialization?28 jc SHORT .SkipInitialization29 call Initialize_AndDetectDrives30 int INTV_BOOTSTRAP ; Call actual boot loader31 .SkipInitialization:32 call RamVars_Initialize ; RAMVARS must be initialized even for simple boot loader33 ; Fall to Int19h_SimpleBootLoader34 35 ;--------------------------------------------------------------------36 ; Simple boot loader.37 ; Boot sequence is fixed to 00h, 80h and INT 18h.38 ;39 ; Int19h_SimpleBootLoader40 ; Parameters:41 ; Nothing42 ; Returns:43 ; Never returns44 ;--------------------------------------------------------------------45 ALIGN JUMP_ALIGN46 Int19h_SimpleBootLoader:47 sti ; Enable interrupts48 call RamVars_GetSegmentToDS49 xor dx, dx50 call Int19h_TryToLoadBootSectorFromDL51 jc SHORT Int19h_JumpToBootSector52 mov dl, 80h53 call Int19h_TryToLoadBootSectorFromDL54 jc SHORT Int19h_JumpToBootSector55 call Int19h_BootFailure ; Should never return56 jmp SHORT Int19h_SimpleBootLoader57 9 58 10 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.