The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: brad@heeltoe.com (Brad Parker)
Subject: [Unix-jun72] confused about disk clearing
Date: Thu, 01 May 2008 16:37:44 -0400	[thread overview]
Message-ID: <2048.1209674264@mini> (raw)


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

...
/ 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.
...

I had to add the "dec r1" above to get it to work.  Otherwise it loops
forever.  Since 'clear' takes a block # in r1, I'm not sure it could
work as written...

anyone look at this?

If I add the "dec r1" it does write some sort of structure to the disk.  I'm
not sure it's correct, but it wrote a bunch of blocks.

-brad




             reply	other threads:[~2008-05-01 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01 20:37 Brad Parker [this message]
2008-05-01 21:23 ` Tim Newsham

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=2048.1209674264@mini \
    --to=brad@heeltoe.com \
    /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).