Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2009 12:02:12 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Nathan Whitehorn <nwhitehorn@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r195869 - projects/ppc64/sys/powerpc/include
Message-ID:  <E5A8A291-B3C8-4EB7-80AC-3BCB6BE0945D@mac.com>
In-Reply-To: <200907251433.n6PEXLYn043304@svn.freebsd.org>
References:  <200907251433.n6PEXLYn043304@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 25, 2009, at 7:33 AM, Nathan Whitehorn wrote:

> Author: nwhitehorn
> Date: Sat Jul 25 14:33:21 2009
> New Revision: 195869
> URL: http://svn.freebsd.org/changeset/base/195869
>
> Log:
>  Add some #ifdefs to powerpc _types to set LP64 types if we are  
> compiling
>  for 64-bit PowerPC. The goal here is to share machine/*.h completely
>  between powerpc and powerpc64.

One way to avoid a few ifdefs is to define __register_t to
be __uint32_t for ILP32 and __uint64_t for LP64. Then use
__register_t for things like __critical_t, __uintptr_t, etc.

Just a thought,

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5A8A291-B3C8-4EB7-80AC-3BCB6BE0945D>