aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-08-31 17:10:14 -0700
committerMatt Fleming <matt.fleming@intel.com>2012-09-04 18:49:38 +0100
commit9415cfeb0a3d641eea9c6b877278e1acbc4ee830 (patch)
tree291b389af905e91717c5d686d8ba903cdb537320 /core/isolinux.asm
parent48b044fc7fc2c0ebb53c3963e9dc75629ae30414 (diff)
downloadsyslinux-9415cfeb0a3d641eea9c6b877278e1acbc4ee830.tar.gz
Create derivative-specific files
Instead of having derivative-specific code within the assembly files and guarded by %if SYSLINUX, etc move all the code to C files so that the correct get_derivative_info() function can be wired up at runtime. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 06291f8b..39e5e5c5 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -78,13 +78,16 @@ ImageSectors resw 1 ; isolinux.bin size, sectors
GetlinsecPtr resw 1 ; The sector-read pointer
BIOSName resw 1 ; Display string for BIOS type
%define HAVE_BIOSNAME 1
+ global BIOSType
BIOSType resw 1
DiskError resb 1 ; Error code for disk I/O
+ global DriveNumber
DriveNumber resb 1 ; CD-ROM BIOS drive number
ISOFlags resb 1 ; Flags for ISO directory search
RetryCount resb 1 ; Used for disk access retries
alignb 8
+ global Hidden
Hidden resq 1 ; Used in hybrid mode
bsSecPerTrack resw 1 ; Used in hybrid mode
bsHeads resw 1 ; Used in hybrid mode
@@ -96,6 +99,7 @@ bsHeads resw 1 ; Used in hybrid mode
alignb 8
_spec_start equ $
+ global spec_packet
spec_packet: resb 1 ; Size of packet
sp_media: resb 1 ; Media type
sp_drive: resb 1 ; Drive number
@@ -171,6 +175,7 @@ _spec_len equ _spec_end - _spec_start
StackBuf equ STACK_TOP-44 ; 44 bytes needed for
; the bootsector chainloading
; code!
+ global OrigESDI
OrigESDI equ StackBuf-4 ; The high dword on the stack
StackHome equ OrigESDI
@@ -1092,6 +1097,7 @@ bios_ebios_str db 'EHDD' ,0
%endif
alignz 4
+ global bios_cdrom
bios_cdrom: dw getlinsec_cdrom, bios_cdrom_str
%ifndef DEBUG_MESSAGES
bios_cbios: dw getlinsec_cbios, bios_cbios_str