public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: John Bradford <john@grabjohn.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Bootable CD idea
Date: Wed, 30 Apr 2003 14:18:40 -0700	[thread overview]
Message-ID: <3EB03DB0.1080804@zytor.com> (raw)
In-Reply-To: <200304301921.h3UJLgCZ001523@81-2-122-30.bradfords.org.uk>

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


      reply	other threads:[~2003-04-30 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-30 11:54 Bootable CD idea John Bradford
2003-04-30 12:21 ` Richard B. Johnson
2003-04-30 12:41   ` John Bradford
2003-04-30 13:14     ` Tomas Szepe
2003-04-30 13:46       ` John Bradford
2003-04-30 13:47     ` Tigran Aivazian
2003-04-30 13:25       ` John Bradford
2003-04-30 18:57         ` H. Peter Anvin
2003-04-30 19:21           ` John Bradford
2003-04-30 21:18             ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EB03DB0.1080804@zytor.com \
    --to=hpa@zytor.com \
    --cc=john@grabjohn.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox