zephyr/tests/posix
Chris Friedt b6aed5c505 kernel: dynamic: use 4k stack size for x86
x86 architectures require a dynamic stack size that is a multiple
of 4096 bytes due to mmu restrictions.

For example, this test would previously fail when using the
default dynamic stack size of 1024 bytes for 32-bit
platforms.

```
west build -p auto -b qemu_x86/atom/nopae -t run \
  tests/posix/common/ -- -DCONFIG_USERSPACE=y
```

It would pass with an additional argument
```
west build -p auto -b qemu_x86/atom/nopae -t run \
  tests/posix/common/ -- -DCONFIG_USERSPACE=y \
  -DCONFIG_DYNAMIC_THREAD_STACK_SIZE=4096
```

Add a special default for x86 when using dynamic thread stacks.

The x86 default removes the need for `boards/qemu_x86*.conf`,
with the exception of `qemu_x86_tiny`.

qemu_x86_tiny did not have sufficient memory (or configuration)
to run the non-userspace tests, so bump up the available ram
from 256k to 512k for this test and clone the .conf from the
demand paging tests.

Eventually, the common posix test should be split into more
concise functional categories.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-10-05 14:13:18 -04:00
..
common kernel: dynamic: use 4k stack size for x86 2024-10-05 14:13:18 -04:00
env tests: posix: env: fix failure in case toolchain with minimal libc 2024-07-11 13:24:02 -04:00
eventfd tests: posix: one tier0 platform per arch for integration tests 2024-08-08 20:23:36 -04:00
fs tests, samples: Define _POSIX_C_SOURCE where needed 2024-09-16 20:17:35 +02:00
getentropy tests: posix: one tier0 platform per arch for integration tests 2024-08-08 20:23:36 -04:00
getopt tests: posix: one tier0 platform per arch for integration tests 2024-08-08 20:23:36 -04:00
headers tests: posix: headers: add checks for posix signals option group 2024-08-23 10:35:11 -04:00
net tests: posix: one tier0 platform per arch for integration tests 2024-08-08 20:23:36 -04:00
pthread_pressure tests: posix: one tier0 platform per arch for integration tests 2024-08-08 20:23:36 -04:00
shm boards: rename qemu_xtensa to qemu_xtensa/dc233c 2024-10-02 09:58:36 +02:00