public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] linux-libc-headers 2.6.8.0
@ 2004-08-18 22:26 Mariusz Mazur
  0 siblings, 0 replies; 3+ messages in thread
From: Mariusz Mazur @ 2004-08-18 22:26 UTC (permalink / raw)
  To: linux-kernel

Available at http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
Changes:
- updated to 2.6.8
- readded ucontext.h - originally thought glibc could handle that, but doesn't 
seem that way (newest hddtemp builds)
- readded unaligned.h (and cleaned it up) - reiserfsprogs' developers found a 
use for it in userland (newest reiserfsprogs builds)
- added and cleaned up (more or less) the sh64 arch
- tried to add missing arm subarch - needs testing I guess
- minor fixes (some ia64 and x86_64 userland conflicts)


This release should have been here a day or two ago weren't it for Murphy's 
laws (the machine that I use for llh development 'broke' yesterday... after 4 
months of uptime :).

Enjoy.


-- 
In the year eighty five ten
God is gonna shake his mighty head
He'll either say,
"I'm pleased where man has been"
Or tear it down, and start again

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] linux-libc-headers 2.6.8.0
@ 2004-08-18 23:41 Albert Cahalan
  0 siblings, 0 replies; 3+ messages in thread
From: Albert Cahalan @ 2004-08-18 23:41 UTC (permalink / raw)
  To: mmazur; +Cc: linux-kernel mailing list

For IA-64 and MIPS, and for any other arch with
variable page sizes, you need something like this:

////////////////////////////////////////
extern int getpagesize(void);

#define PAGE_SIZE ((unsigned long)(getpagesize()))

// This is a gcc statement-expression.
// You might want the __extension__ keyword.
#define PAGE_SHIFT ({          \
  int _PAGE_SIZE = PAGE_SIZE;  \
  (_PAGE_SIZE > 16*1024)       \   
  ?  (_PAGE_SIZE == 32*1024)   \  
     ? 15ul                      \  
     : 16ul                      \  
  :  (_PAGE_SIZE == 8*1024)     \
     ? 13ul                      \  
     :  (_PAGE_SIZE == 4*1024)  \
        ? 12ul                   \
        : 14ul                  \
  ;                           \
})
//////////////////////////////////////////



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] linux-libc-headers 2.6.8.0
@ 2004-08-19  0:03 Albert Cahalan
  0 siblings, 0 replies; 3+ messages in thread
From: Albert Cahalan @ 2004-08-19  0:03 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: mmazur, mmazur

Never mind that last one. This is nicer:

extern int getpagesize(void);
#define PAGE_SIZE ((unsigned long)getpagesize())
#define PAGE_SHIFT ((unsigned long[]){12,13,14,-1,15,-1,-1,-1,16}[PAGE_SIZE>>13])



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-19  2:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-18 23:41 [ANNOUNCE] linux-libc-headers 2.6.8.0 Albert Cahalan
  -- strict thread matches above, loose matches on Subject: below --
2004-08-19  0:03 Albert Cahalan
2004-08-18 22:26 Mariusz Mazur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox