[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: Bootable CD idea
From:       "H. Peter Anvin" <hpa () zytor ! com>
Date:       2003-04-30 21:18:40
[Download RAW message or body]

John Bradford wrote:
> 
> Ah, it makes more sense now :-).  So, could I bodge 2.4 in to working
> by modifying bootsect.S with something like this?
> 
> 
>         movw    $disksizes+1, %si         # Force 18 sectors/track
> probe_loop:
>         lodsb
>         cbtw                            # extend to word
>         xchgw   %cx, %ax                # %cx = track and sector
>         xorw    %dx, %dx                # drive 0, head 0
>         movw    $0x0200, %bx            # address = 512, in INITSEG (%es = %cs)
>         movw    $0x0201, %ax            # service 2, 1 sector
>         int     $0x13
>         movb    $0x03, %ah              # read cursor pos
>         xorb    %bh, %bh
> 
> John.

Perhaps you could, but why the fsck do you want to beat a dead horse
over and over again?  Use a real bootloader instead.

	-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic