9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Christopher Nielsen <cnielsen@pobox.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] kernel debug - how
Date: Fri, 28 Feb 2003 19:41:34 -0800	[thread overview]
Message-ID: <20030301034133.GY73079@cassie.foobarbaz.net> (raw)

> You can debug the kernel with acid -k but there
> is no way to write to kernel memory.
>
> However, you can set that variable by doing
>
> 	echo debug >/dev/fd0ctl
>
> (There is no way to change it back to zero
> after that, which is itself a bug.)

Here's a patch that adds a command to disable debugging
for the floppy driver.


121a122
> 	CMnodebug,
129a131
> 	CMnodebug, "nodebug", 1,
475a478,480
> 			break;
> 		case CMnodebug:
> 			floppydebug = 0;

--
Christopher Nielsen
"They who can give up essential liberty for temporary
safety, deserve neither liberty nor safety." --Benjamin Franklin


             reply	other threads:[~2003-03-01  3:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-01  3:41 Christopher Nielsen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-26 14:22 Steve Simon
2003-02-26 14:34 ` Russ Cox

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=20030301034133.GY73079@cassie.foobarbaz.net \
    --to=cnielsen@pobox.com \
    --cc=9fans@cse.psu.edu \
    /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).