]> sourceware.org Git - newlib-cygwin.git/commit
Implement sysconf for Arm
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 16 Sep 2022 20:04:21 +0000 (16:04 -0400)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 19 Sep 2022 19:35:55 +0000 (15:35 -0400)
commit5230eb7f8c6b43c71d7e38d138935c48de930b76
treef2a00763fe3edead63c1e6adcce4417a2c0ba359
parenteb5c631ead537ac5640d7e4b1ea0edbef344d6d9
Implement sysconf for Arm

- add support for using sysconf to get page size in _mallocr.c via
  HAVE_SYSCONF_PAGESIZE flag set in configure.host
- set flag in configure.host for arm and add a default sysconf implementation
  in libc/sys/arm that returns the page size
- the default implementation can be overridden outside newlib to allow a
  different page size to improve malloc on devices with a small footprint
  without needing to rebuild newlib
- this patch is based on a contribution from Torbjorn Svensson and
  Niklas Dahlquist (https://ecos.sourceware.org/ml/newlib/current/017616.html)
newlib/configure.host
newlib/libc/stdlib/_mallocr.c
newlib/libc/sys/arm/Makefile.inc
newlib/libc/sys/arm/sysconf.c [new file with mode: 0644]
This page took 0.028521 seconds and 5 git commands to generate.