On 7/14/07, Olaf Hering <[email protected]> wrote:
Declare PAGE_SIZE as getpagesize() for userspace. PAGE_SIZE is used in resource.h and shm.h define PAGE_SIZE in asm-generic/page.h guard get_order() with _ARCH_HAS_GET_ORDER for ia64 and xtensa include asm-generic/page.h in asm/page.h make asm/page.h nearly empty by moving the #ifdef guards up remove unneeded page.h export from frv
imo, asm/page.h should just go away for userspace. the attached patch is what i've been using in Gentoo ... but somethings (like an arch or two in glibc) still assume asm/page.h is OK. in general though, considering asm/page.h has become so unreliable lately (a large number of arches ifdef the whole thing out), most packages out there have updated already to use the userspace interface from unistd.h. -mike
Attachment:
10_all_remove-page-user-headers.patch
Description: Binary data
- Follow-Ups:
- Re: [PATCH] remove PAGE_SIZE from headers_install
- From: Olaf Hering <[email protected]>
- Re: [PATCH] remove PAGE_SIZE from headers_install
- From: Olaf Hering <[email protected]>
- Re: [PATCH] remove PAGE_SIZE from headers_install
- References:
- [PATCH] remove PAGE_SIZE from headers_install
- From: Olaf Hering <[email protected]>
- [PATCH] remove PAGE_SIZE from headers_install
- Prev by Date: Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation
- Next by Date: Re: Geode GX framebuffer driver: Arcom vs. AMD
- Previous by thread: [PATCH] remove PAGE_SIZE from headers_install
- Next by thread: Re: [PATCH] remove PAGE_SIZE from headers_install
- Index(es):