[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unimplemented SPARC system call 162



Miguel de Icaza wrote:
> 
> > this could be tied to login, since its a busy system.  This is with
> > 2.0.27.
> > 
> > If nothing else, it would be nice if syslogd could be set to ignore
> > this.  It clutters up /var/log/messages and the console.
> 
> Use this patch for your kernel:
> 
> --- linux/arch/sparc/kernel/systbls.S.old	Mon Dec 22 16:28:33 1997
> +++ linux/arch/sparc/kernel/systbls.S	Mon Dec 22 16:29:42 1997
> @@ -79,7 +79,7 @@
>  	.long C_LABEL(sys_poll), C_LABEL(sys_nis_syscall), C_LABEL(sys_nis_syscall)
>  	.long C_LABEL(sys_nis_syscall), C_LABEL(sys_statfs), C_LABEL(sys_fstatfs)
>  	.long C_LABEL(sys_umount), C_LABEL(sys_nis_syscall), C_LABEL(sys_nis_syscall)
> -	.long C_LABEL(sys_nis_syscall), C_LABEL(sys_setdomainname)
> +	.long C_LABEL(sys_getdomainname), C_LABEL(sys_setdomainname)
>  	.long C_LABEL(sys_nis_syscall), C_LABEL(sys_quotactl), C_LABEL(sys_nis_syscall)
>  	.long C_LABEL(sys_mount), C_LABEL(sys_ustat), C_LABEL(sys_nis_syscall)
>  	.long C_LABEL(sys_nis_syscall), C_LABEL(sys_nis_syscall), C_LABEL(sys_nis_syscall)
> 
> Miguel

Hmm, this patch does not seem to work for me.  sys_getdomainname is not known.
I just found a sunos_getdomainname function.  I'm trying to use it instead,
but cannot tell you if it work at this time since the kernel is recompiling ;-)

BTW, this error comes from getdomainname implementation of libc6.

# strace ping
execve("/bin/ping", ["ping"], [/* 12 vars */]) = 0
...
getdomainname(0x50164dc0, 0x400)        = -1 ENOSYS (Function not implemented)
Unimplemented SPARC system call 162
PSR: 41001081 PC: 500cbfc8 NPC: 500cbfcc Y: 05000000
g0: 00000000 g1: 000000a2 g2: 00000000 g3: effffaa4
g4: 50127cc8 g5: 00000000 g6: 00000000 g7: 00000000
o0: 50164dc0 o1: 00000400 o2: 00000000 o3: 50144b8c
o4: 50126000 o5: 00000000 sp: effffb08 ret_pc: 50144bf4
l0: 50164dc0 l1: effffbdc l2: 00000000 l3: f0129400
l4: 00000008 l5: f0491f70 l6: 00000000 l7: 50165b18
i0: effffbdc i1: 00000001 i2: 00000000 i3: 5012825c
i4: 5002b000 i5: 00000015 i6: effffb70 i7: 501282a8
open("/etc/protocols", O_RDONLY)        = 3
...

Bye.

-- 
 Eric Delaunay                 | "La guerre justifie l'existence des militaires.
 delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: