The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: newsham@lava.net (Tim Newsham)
Subject: [Unix-jun72] confused about disk clearing
Date: Thu, 1 May 2008 11:23:50 -1000 (HST)	[thread overview]
Message-ID: <Pine.BSI.4.64.0805011119180.20114@malasada.lava.net> (raw)
In-Reply-To: <2048.1209674264@mini>

> I'm confused about the disk clearing code in u0.s:

It's possible the "cold" code was not maintained?

> / zero i list
>
> 1:
> 	dec    r0 / r0=33.,...,1
> dec r1
> 	jsr    r0,clear / zero block 'r1' on fixed head disk
> 	tst    r1
> 	bgt    1b / if blocks 33,...,1 have all been zeroed, done.

Hmm.. looking at the code the "dec r0" looks like it should be
"dec r1".  The value of r1 at this point is 34 (and r0 is not).
The comment is likely also wrong: "r1=33.,...,1".  This would
agree with the current values.  r0 looks to be used for an entirely
different purpose throughout the code (linking jsr's).

> -brad

Tim Newsham
http://www.thenewsh.com/~newsham/



      reply	other threads:[~2008-05-01 21:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01 20:37 Brad Parker
2008-05-01 21:23 ` Tim Newsham [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=Pine.BSI.4.64.0805011119180.20114@malasada.lava.net \
    --to=newsham@lava.net \
    /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;
as well as URLs for NNTP newsgroup(s).