Thanx Matt. Talked to a lot of people today about this from my headers
project. As long as there is no way to use the kernel headers, this
project is going to exist. Plus, we had a call to sanitize the 2.4
headers to get rid of the __KERNEL__ stuff from them.
If the make install_headers patch goes in, it will probably be time to
re-evaluate.
The one thing I've realize working on this is that, not everything in
the headers will work out of the box, good example is the paging size
stuff, that requires a glibc function to get it done right. If depends
on the config.h that is produced during make config stages.
This is what I'm talking about.
Santized MIPS page.h
#define PAGE_SIZE (getpagesize())
static __inline__ int getpageshift()
{
int pagesize = getpagesize();
return (__builtin_clz(pagesize) ^ 31);
}
#define PAGE_SHIFT (getpageshift())
Non santized page.h
/*
* PAGE_SHIFT determines the page size
*/
#ifdef CONFIG_PAGE_SIZE_4KB
#define PAGE_SHIFT 12
#endif
#ifdef CONFIG_PAGE_SIZE_8KB
#define PAGE_SHIFT 13
#endif
#ifdef CONFIG_PAGE_SIZE_16KB
#define PAGE_SHIFT 14
#endif
#ifdef CONFIG_PAGE_SIZE_64KB
#define PAGE_SHIFT 16
#endif
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page