svn commit: r199501 - projects/ppc64/sys/compat/freebsd32

Bruce Evans brde at optusnet.com.au
Thu Nov 19 08:51:22 UTC 2009


On Thu, 19 Nov 2009, Nathan Whitehorn wrote:

> Log:
>  Unhackify changes to support big-endian systems and systems that require
>  64-bit types aligned at 32-bit boundaries in their 32-bit ABIs. There are
>  no longer manual changes to auto-generated files.
> ...
> Modified: projects/ppc64/sys/compat/freebsd32/freebsd32_misc.c
> ==============================================================================
> --- projects/ppc64/sys/compat/freebsd32/freebsd32_misc.c	Thu Nov 19 01:04:31 2009	(r199500)
> +++ projects/ppc64/sys/compat/freebsd32/freebsd32_misc.c	Thu Nov 19 01:20:16 2009	(r199501)
> ...
> @@ -2008,7 +2013,7 @@ freebsd32_lseek(struct thread *td, struc
> 	off_t pos;
>
> 	ap.fd = uap->fd;
> -	ap.offset = (uap->offsetlo | ((off_t)uap->offsethi << 32));
> +	ap.offset = PAIR32TO64(off_t,uap->offset);
> 	ap.whence = uap->whence;
> 	error = lseek(td, &ap);
> 	/* Expand the quad return into two parts for eax and edx */

Code to implement eax and edx on arches that don't have them seems to be
missing :-).

> Modified: projects/ppc64/sys/compat/freebsd32/freebsd32_proto.h
> ==============================================================================
> --- projects/ppc64/sys/compat/freebsd32/freebsd32_proto.h	Thu Nov 19 01:04:31 2009	(r199500)
> +++ projects/ppc64/sys/compat/freebsd32/freebsd32_proto.h	Thu Nov 19 01:20:16 2009	(r199501)
> @@ -3,7 +3,7 @@
>  *
>  * DO NOT EDIT-- this file is automatically generated.
>  * $FreeBSD$
> - * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 198508 2009-10-27 10:55:34Z kib
> + * created from FreeBSD: projects/ppc64/sys/compat/freebsd32/syscalls.master 199485 2009-11-18 15:48:51Z nwhitehorn
>  */

This seems to have been generated from syscalls.master 199501, not the
claimed rev.  Similarly for all other generated files.

Bruce


More information about the svn-src-projects mailing list