zephyr/kernel
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
..
include newlib: fix heap user mode access for MPU devices 2018-05-10 15:09:02 -07:00
alert.c
atomic_c.c
CMakeLists.txt
compiler_stack_protect.c
device.c
errno.c
idle.c kernel: Rework SMP irq_lock() compatibility layer 2018-05-02 10:00:17 -07:00
init.c kernel: Rework SMP irq_lock() compatibility layer 2018-05-02 10:00:17 -07:00
int_latency_bench.c
Kconfig doc: fix misspellings in doc and Kconfig files 2018-05-09 15:06:43 -05:00
Kconfig.event_logger
Kconfig.power_mgmt
mailbox.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
mem_domain.c
mem_slab.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
mempool.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
msg_q.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
mutex.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
pipes.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
poll.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
queue.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
sched.c kernel: Rework SMP irq_lock() compatibility layer 2018-05-02 10:00:17 -07:00
sem.c kernel: sem: Ensure that initial count is lesser or equal than limit 2018-04-24 04:04:36 +05:30
smp.c kernel: Rework SMP irq_lock() compatibility layer 2018-05-02 10:00:17 -07:00
stack.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
sys_clock.c
system_work_q.c
thread_abort.c
thread.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
timer.c kernel: Clean up _unpend_thread() API 2018-04-24 03:57:20 +05:30
userspace_handler.c
userspace.c scripts: gen_kobject_list: Generate enums and case statements 2018-04-26 02:57:12 +05:30
version.c
work_q.c