[klibc] [PATCH] get rid of asm/page.h usage
Olaf Hering
olh at suse.de
Mon Feb 14 00:21:09 PST 2005
I think there is no need to special case some archs, just get the thing
during runtime on all archs.
Index: include/sys/mman.h
===================================================================
--- include/sys/mman.h (revision 1010)
+++ include/sys/mman.h (working copy)
@@ -8,7 +8,6 @@
#include <klibc/extern.h>
#include <sys/types.h>
#include <asm/mman.h>
-#include <asm/page.h> /* For PAGE_SIZE */
#define MAP_FAILED ((void *)-1)
Index: klibc/mmap.c
===================================================================
--- klibc/mmap.c (revision 1010)
+++ klibc/mmap.c (working copy)
@@ -7,15 +7,8 @@
#include <sys/syscall.h>
#include <sys/mman.h>
#include <unistd.h>
-#include <asm/page.h> /* For PAGE_SHIFT */
-#if defined(__sparc__)
-# define MMAP2_SHIFT 12 /* Fixed by syscall definition */
-#elif defined(__mips__) || defined(__powerpc__)
# define MMAP2_SHIFT __getpageshift() /* Variable */
-#else
-# define MMAP2_SHIFT PAGE_SHIFT
-#endif
/*
* Set in SYSCALLS whether or not we should use an unadorned mmap() system
More information about the klibc
mailing list