lkml.org 
[lkml]   [1998]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.126 still no sparc64 autofs
On Sat, Nov 14, 1998 at 01:45:16PM -0500, Rich Sahlender wrote:
> H. Peter Anvin wrote:
> > Why is the "long" a different size in kernel and user space? That
> > seems buggy. It's an easy thing to fix, but it seems like the Wrong
> > Thing[TM].
>
> I tend to agree it's buggy. I would expect the long to generate a 32
> bit int even in the 64 bit kernel space unless you specifically ask
> for a 64 bit long .ie. suns 'long long'. This would keep things
> downward/backward compatible.

A big problem is that there are a number of places in the kernel that
assume sizeof(long) == sizeof(void *). Mostly to do with page tables
and I/O address remapping, a few to do with overloading struct elements
by kludgy casts.

Yucky I know, but there you go.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.046 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site