Patch RTEMS: make PAGESIZE and PAGE_SIZE match

Gedare Bloom gedare@rtems.org
Sun Dec 8 05:12:00 GMT 2013


According to POSIX PAGESIZE and PAGE_SIZE must be identical. This
pages changes the constant PAGESIZE in
newlib/libc/sys/rtems/include/limits.h to match the PAGE_SIZE constant
defined in newlib/libc/sys/rtems/machine/param.h.

See also: https://www.rtems.org/bugzilla/show_bug.cgi?id=1216

2013-12-05  Chirayu Desai  <chirayudesai1@gmail.com>

    * newlib/libc/sys/rtems/include/limits.h: Update page size
      to match newlib/libc/sys/rtems/machine/param.h
-------------- next part --------------
? pagesize.diff
? serdep.tmp
? etc/Makefile
? etc/config.cache
? etc/config.status
? etc/configure.info
? etc/standards.info
? newlib/autom4te.cache
? newlib/unistd.diff
? newlib/unistd1
? newlib/doc/autom4te.cache
? newlib/doc/makedoc
? newlib/libc/autom4te.cache
? newlib/libc/machine/autom4te.cache
? newlib/libc/machine/x86_64/autom4te.cache
? newlib/libc/sys/autom4te.cache
? newlib/libm/autom4te.cache
? newlib/libm/machine/autom4te.cache
Index: newlib/libc/sys/rtems/include/limits.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/include/limits.h,v
retrieving revision 1.5
diff -u -r1.5 limits.h
--- newlib/libc/sys/rtems/include/limits.h	15 Oct 2013 17:38:32 -0000	1.5
+++ newlib/libc/sys/rtems/include/limits.h	5 Dec 2013 15:39:34 -0000
@@ -66,7 +66,7 @@
 #define DELAYTIMER_MAX          32
 #define MQ_OPEN_MAX             8
 #define MQ_PRIO_MAX             32
-#define PAGESIZE                1
+#define PAGESIZE                (1<<12)
 #define RTSIG_MAX               8
 #define SEM_NSEMS_MAX           256
 #define SEM_VALUE_MAX           32767


More information about the Newlib mailing list