I know that the CX register contains the count for the following movesw
instruction .
I want to know what is the exatly number of CX .
In bootsect.S , we know 0x9000:[497] is the sector number of setup code . I
have seen that it is 4.
Than "sub bx,#4 ! LILO loads 4 sectors of setup "
bx=0???? What and where is the rest of setup???
Those following codes are executed when there is "bad_sig" .
LILO loads 4 sectors of setup ??? Is the sectors numbers of setup.S is big
than 4 ?? In bootset.c , it is defined as 4.
When we use lilo ,lilo load its bootsect ( lilo's bootsect ) and setup.S
,does the lilo load all the sector of the sect.S ????
When the task of lilo is completed , it give the control to setup.S or the
kernel start code ?????
Is the kernel Image including the code of bootsect.S and setup.S ????
Thank you all .
The codes in setup.S that confuse me are the following :
..........
! We now have to find the rest of the setup code/data
bad_sig:
mov ax,cs ! aka #SETUPSEG
sub ax,#DELTA_INITSEG ! aka #INITSEG
mov ds,ax
xor bh,bh
mov bl,[497] ! get setup sects from boot sector
sub bx,#4 ! LILO loads 4 sectors of setup
shl bx,#8 ! convert to words
mov cx,bx
shr bx,#3 ! convert to segment
add bx,#SYSSEG
seg cs
mov start_sys_seg,bx
! Move rest of setup code/data to here !
mov di,#2048 ! four sectors loaded by LILO !
sub si,si
mov ax,cs ! aka #SETUPSEG
mov es,ax
mov ax,#SYSSEG
mov ds,ax
rep
movsw
..............
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list