Эх сурвалжийг харах

Some badly behaved arches fail to provide a PAGE_SIZE define

Eric Andersen 21 жил өмнө
parent
commit
c761b902cd
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      ldso/include/ldso.h

+ 4 - 0
ldso/include/ldso.h

@@ -11,3 +11,7 @@
 #include <ld_string.h>
 /* Pull in the arch specific page size */
 #include <asm/page.h>
+#ifndef PAGE_SIZE
+#  define PAGE_SHIFT		12
+#  define PAGE_SIZE		(1UL << PAGE_SHIFT)
+#endif