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 / x86 / swap_x86.h

12 lines · 610 bytes Raw Blame History
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. */
7void 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. */
11int ck_x86_swap_step(const struct ck_handoff *hand, uint64_t tramp_pa);
12#endif