Wrong SHMLBA for MIPS
Daniel Jacobowitz
drow@mvista.com
Tue Jul 15 20:42:00 GMT 2003
A year ago, HJ posted a patch to create a <sys/shm.h> for MIPS. It was
applied and then reverted, and <bits/shm.h> got a definition of SHMLBA. But
it's not the right one...
The kernel says:
#define SHMLBA 0x40000 /* attach addr a multiple of this */
But the MIPS <bits/shm.h> says:
/* Segment low boundary address multiple. */
#define SHMLBA (__getpagesize ())
extern int __getpagesize (void) __THROW __attribute__ ((__const__));
which works out to 4K on MIPS. Am I missing something or should
<bits/shm.h> be corrected?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Libc-alpha
mailing list