zephyr/lib
Andrew Boie 42a2c96422 newlib: fix heap user mode access for MPU devices
MPU devices that enforce power-of-two alignment now
specify the size of the buffer used for the newlib heap.
This buffer will be properly aligned and a pointer
exposed in a kernel header, such that it can be added
to a user thread's memory domain configuration if
necessary.

MPU devices that don't have these restrictions allocate
the heap as normal.

In all cases, if an MPU/MMU region needs to be programmed,
the z_newlib_get_heap_bounds() API will return the necessary
information.

Given how precious MPU regions are, no automatic programming
of the MPU is done; applications will need to do this as
needed in their memory domain configurations.

On x86, the x86 MMU-specific code has been moved to arch/x86
using the new z_newlib_get_heap_bounds() API.

Fixes: #6814

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2018-05-10 15:09:02 -07:00
..
base64 lib: base64: Add statement of changes 2018-03-23 13:54:48 +01:00
crc crc: make crc8_ccitt() match the other CRC functions. 2018-03-10 21:49:07 -05:00
json lib: json: Efficiently pack field name, offset, alignment, type 2018-05-01 15:44:09 -04:00
libc newlib: fix heap user mode access for MPU devices 2018-05-10 15:09:02 -07:00
mempool lib: user mode compatible mempools 2018-04-05 07:03:05 -07:00
posix lib: posix: pthread_common: Fix potential integer overflow issue 2018-04-30 06:49:42 -04:00
rbtree lib/rbtree: Add a rb_contains() predicate 2018-04-10 12:31:51 -04:00
ring_buffer lib: move ring_buffer from misc/ to lib/ 2017-12-15 20:02:01 -05:00
CMakeLists.txt lib: Red/Black balanced tree data structure 2018-04-10 12:31:51 -04:00
Kconfig lib: posix: Move posix layer from 'kernel' to 'lib' 2018-04-05 16:43:05 -04:00