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 / x86 / swap_x86.h
| 1 | /* swap_x86.h -- live kernel swap declarations (kernel-internal). */ |
| 2 | #ifndef AIENOS_CK_SWAP_X86_H |
| 3 | #define AIENOS_CK_SWAP_X86_H |
| 4 | #include "../mm/frames.h" |
| 5 | #include "../../boot/handoff.h" |
| 6 | /* Init: pre-allocate the swap buffer. Call once in kernel_main. */ |
| 7 | void ck_x86_swap_init(struct ck_frames *fr); |
| 8 | /* Step: check for swap triggers (UDP or disk-staged). Called from hold_step. |
| 9 | * Returns 1 only if a swap was performed (and never returns in that case). |
| 10 | * hand = current handoff, tramp_pa = AP trampoline page physical address. */ |
| 11 | int ck_x86_swap_step(const struct ck_handoff *hand, uint64_t tramp_pa); |
| 12 | #endif |