aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / svc / compat
f45d00a chore(license): adopt Apache-2.0 across the tree (#448)
| .. | |
| .crumb | 2376 |
| README | 1092 |
| pthread.h | 1405 |
| stdio.h | 1405 |
| stdlib.h | 1005 |
| string.h | 1193 |
| time.h | 1075 |
Kernel-build-only stand-ins for the hosted headers that
native/capability/aienos_capability.c, aienos_contain.c and
native/argus/bridge/argus_aegis_bridge.c include (pthread.h, stdio.h,
stdlib.h, time.h, string.h). They are put on the include path ONLY for the
freestanding kernel build (first entry of STAGE_CFLAGS in stage.mk); host tests use the real
libc and pthreads. Every name is redirected to a ck_compat_* function in
../ck_compat.c, built on ck.h services:
malloc/calloc/free -> ck_alloc / ck_free
clock_gettime -> ck_time_us
fopen("/dev/urandom") + fread -> ck_entropy_fill (arch/rndr.c over
core/entropy.c): the CPU RNDR instruction (FEAT_RNG
checked, bounded retry, stuck test) or a refusal:
fread returns 0 and the capability office token
fails closed. There is no fallback source.
pthread_mutex_* -> single-core flag; contention means a bug (re-entry)
and panics instead of deadlocking.
The native/* sources are compiled unmodified.