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 / disk / omega_nvme_main.om

28 lines · 533 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Manifest bytes: serial[20], firmware[8], NSID u32, extent start/count u64,
3note request LBA u64, count u32, repetitions u32, approved u32, reserved u32.
4note All integers little endian. Approval here is fixture binding, not hardware authority.
5fn main to int
6getmanifest
7if ne man32 68 0
8ret 20
9end
10r = initialize
11if ne r 0
12report r
13ret r
14end
15n = man32 60
16if or eq n 0 gt n 64
17ret 33
18end
19for i ulong n
20r = readblocks man64 48 man32 56
21if ne r 0
22report r
23ret r
24end
25end
26report 0
27ret 0
28end