9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: quanstro@quanstro.net, 9fans@9fans.net
Subject: Re: [9fans] libmach x86 botch
Date: Sun,  4 Sep 2011 13:38:02 -0400	[thread overview]
Message-ID: <7a1bb1e908842a868d0d147816cb3c49@ladd.quanstro.net> (raw)
In-Reply-To: <8c848edf90f1e3e201a3b225f3969c91@ladd.quanstro.net>

forgot to include a proposed fix

; diffy -c 8db.c
/n/dump/2011/0904/sys/src/libmach/8db.c:2060,2066 - 8db.c:2060,2066
  	USED(modifier);
  	op = mkinstr(map, &instr, pc);
  	if (op == 0) {
- 		errstr(buf, n);
+ 	//	errstr(buf, n);
  		return -1;
  	}
  	instr.curr = buf;
/n/dump/2011/0904/sys/src/libmach/8db.c:2076,2082 - 8db.c:2076,2082
  	int i;

  	if (mkinstr(map, &instr, pc) == 0) {
- 		errstr(buf, n);
+ 	//	errstr(buf, n);
  		return -1;
  	}
  	for(i = 0; i < instr.n && n > 2; i++) {

before
	; acid 1242799
	/proc/1242799/text:386 plan 9 executable
	/sys/lib/acid/port
	/sys/lib/acid/386
	acid: asm(0xdfffef8c)
	0xdfffef8c 0xdfffef8c	<stdin>:2: (error) indir: -<cr><enq>
	acid: <eot>
	echo kill > /proc/1242799/ctl
after
	; acid 1242799
	/proc/1242799/text:386 plan 9 executable
	/sys/lib/acid/port
	/sys/lib/acid/386
	acid: asm(0xdfffef8c)
	0xdfffef8c 0xdfffef8c	<stdin>:2: (error) indir: can't read instruction: can't translate address 0xdfffef8c
	acid: <eot>
	echo kill > /proc/1242799/ctl

- erik



  reply	other threads:[~2011-09-04 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-04 17:33 erik quanstrom
2011-09-04 17:38 ` erik quanstrom [this message]
2011-09-04 18:32 ` Russ Cox
     [not found] ` <CADSkJJUnyBgoCt7bek6482BJ2SZ7vh=DbaFwNLNcY36qj994+g@mail.gmail.c>
2011-09-04 18:36   ` erik quanstrom

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=7a1bb1e908842a868d0d147816cb3c49@ladd.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.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).