[TUHS] Introduction

Oliver Lehmann lehmann at ans-netz.de
Tue Jun 24 02:11:01 AEST 2008

Hi Jose,

Jose R. Valverde wrote:

> 	u.u_dirp.l = (caddr_t) (*((long *)(uap->linkname &0x7F00FFFF)))

leads to:

"sys2.c":305: operands of "&" have incompatible types 
Error in file sys2.c: Error.  No assembly.

I've changed it to:
	u.u_dirp.l = (caddr_t) (*((long *)((long)uap->linkname &0x7F00FFFF)));

and this produces:

        ldl     rr2,rr8(#4)
        and     r2,#32512
        ldl     rr4, at rr2
        ldl     _u+78,rr4

not exactly the wanted code :(

Greetings, Oliver

 Oliver Lehmann

More information about the TUHS mailing list