interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / kernel / svc / compat / README

17 lines · 1092 bytes Raw Blame History
1Kernel-build-only stand-ins for the hosted headers that
2native/capability/aienos_capability.c, aienos_contain.c and
3native/argus/bridge/argus_aegis_bridge.c include (pthread.h, stdio.h,
4stdlib.h, time.h, string.h). They are put on the include path ONLY for the
5freestanding kernel build (first entry of STAGE_CFLAGS in stage.mk); host tests use the real
6libc and pthreads. Every name is redirected to a ck_compat_* function in
7../ck_compat.c, built on ck.h services:
8 malloc/calloc/free -> ck_alloc / ck_free
9 clock_gettime -> ck_time_us
10 fopen("/dev/urandom") + fread -> ck_entropy_fill (arch/rndr.c over
11 core/entropy.c): the CPU RNDR instruction (FEAT_RNG
12 checked, bounded retry, stuck test) or a refusal:
13 fread returns 0 and the capability office token
14 fails closed. There is no fallback source.
15 pthread_mutex_* -> single-core flag; contention means a bug (re-entry)
16 and panics instead of deadlocking.
17The native/* sources are compiled unmodified.