9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Gregory Pavelcak <g.pavelcak@comcast.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Drawterm on Mac Mini w/Ubuntu Linux
Date: Tue, 17 Jan 2006 17:08:50 -0500	[thread overview]
Message-ID: <1137535730.5092.8.camel@localhost.localdomain> (raw)
In-Reply-To: <ee9e417a0601171340u21de897bu8a697c684053fc14@mail.gmail.com>

OK. Cut-n-pasted what you wrote into tas.s and got farther

make[1]: Leaving directory `/home/gp/drawterm/posix-power'
gcc -pthread -o drawterm main.o cpu.o readcons.o secstore.o latin1.o
posix-factotum.o  kern/libkern.a exportfs/libexportfs.a
libauth/libauth.a libauthsrv/libauthsrv.a libsec/libsec.a libmp/libmp.a
libmemdraw/libmemdraw.a libmemlayer/libmemlayer.a libdraw/libdraw.a
gui-x11/libgui.a libc/libc.a  kern/libkern.a exportfs/libexportfs.a
libauth/libauth.a libauthsrv/libauthsrv.a libsec/libsec.a libmp/libmp.a
libmemdraw/libmemdraw.a libmemlayer/libmemlayer.a libdraw/libdraw.a
gui-x11/libgui.a libc/libc.a  kern/libkern.a exportfs/libexportfs.a
libauth/libauth.a libauthsrv/libauthsrv.a libsec/libsec.a libmp/libmp.a
libmemdraw/libmemdraw.a libmemlayer/libmemlayer.a libdraw/libdraw.a
gui-x11/libgui.a libc/libc.a  libmachdep.a -L/usr/X11R6/lib -lX11 -ggdb
kern/libkern.a(devcons.o): In function `consopen':
/home/gp/drawterm/kern/devcons.c:585: undefined reference to `tas'
libc/libc.a(lock.o): In function `canlock':
/home/gp/drawterm/libc/lock.c:7: undefined reference to `tas'
collect2: ld returned 1 exit status
make: *** [drawterm] Error 1

On Tue, 2006-01-17 at 16:40 -0500, Russ Cox wrote:
> Try removing tas.c from drawterm/posix-power and create tas.s
> instead:
> 
> 	.globl	_tas
> _tas:
> 	li	%r0, 0
> 	mr	%r4, %r3
> 	lis	%r5, 0xcafe
> 	ori	%r5, %r5, 0xbabe
> 1:
> 	lwarx	%r3, %r0, %r4
> 	cmpwi	%r3, 0
> 	bne	2f
> 	stwcx.	%r5, %r0, %r4
> 	bne-	1b
> 2:
> 	sync
> 	blr
> 
> Russ



  reply	other threads:[~2006-01-17 22:08 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17  1:14 Gregory Pavelcak
2006-01-17  1:19 ` Russ Cox
2006-01-17 11:17   ` Gregory Pavelcak
2006-01-17 12:00     ` erik quanstrom
2006-01-17 21:11       ` Gregory Pavelcak
2006-01-17 21:40         ` Russ Cox
2006-01-17 22:08           ` Gregory Pavelcak [this message]
2006-01-17 22:13             ` Russ Cox
2006-01-17 22:28               ` Gregory Pavelcak
2006-01-17 22:55                 ` Charles Forsyth
2006-01-17 22:33         ` Skip Tavakkolian
2006-01-17 21:41           ` Gregory Pavelcak
2006-01-17 22:40           ` Skip Tavakkolian
2006-01-18  0:37           ` Sven Moritz Hallberg
2006-01-17  1:20 ` Federico G. Benavento
2006-01-17  1:22 ` andrey mirtchovski
2006-01-17  1:25 ` [9fans] " Uriel
2006-01-17  1:34   ` andrey mirtchovski
2006-01-17  1:40   ` Russ Cox
2006-01-17  7:32     ` lucio
2006-01-17  7:29   ` lucio
2006-01-17 20:40     ` Micah Stetson
2006-01-17 10:06   ` Charles Forsyth

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=1137535730.5092.8.camel@localhost.localdomain \
    --to=g.pavelcak@comcast.net \
    --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).