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 / omega / platform / unit.om

88 lines · 1359 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Concatenate readback.om and unit.om. Complete descriptor parity is in gate.sh.
3fn main to int
4if ne plstart 0 7 0 1 1
5ret 1
6end
7if ne plstart 0 0 1 1 1
8ret 2
9end
10if ne plstart 0 0 0 0 3
11ret 3
12end
13if ne plstart 0 0 0 1 0
14ret 4
15end
16if ne plstart 0 1 0 2 2
17ret 5
18end
19if ne plack 2 0 472090648 32 3132 1 3
20ret 6
21end
22if ne get Pl 6 0
23ret 7
24end
25if ne plstart 0 0 0 1 3
26ret 8
27end
28if ne plstart 0 0 0 2 0
29ret 9
30end
31if ne plack 2 127 472090648 32 3132 1 3
32ret 10
33end
34if ne plstart 0 0 0 3 0
35ret 11
36end
37if ne plack 3 0 472090652 32 3132 1 3
38ret 12
39end
40if ne plstart 0 0 0 4 0
41ret 13
42end
43if ne plack 4 0 472090648 64 3132 1 3
44ret 14
45end
46if ne plstart 0 0 0 5 0
47ret 15
48end
49if ne plack 5 0 472090648 32 3132 0 4
50ret 16
51end
52if ne plstart 0 0 0 6 0
53ret 17
54end
55if ne plack 6 0 472090648 32 4294967296 1 3
56ret 18
57end
58if ne plstart 0 0 0 7 0
59ret 19
60end
61if ne plack 7 0 472090648 32 3132 1 0
62ret 20
63end
64if or ne get Pl 5 3132 ne get Pl 6 1
65ret 21
66end
67if ne plack 7 0 472090648 32 3132 1 3
68ret 22
69end
70if or ne get Pl 5 0 ne get Pl 6 0
71ret 23
72end
73if ne plstart 1 20 0 8 1
74ret 24
75end
76if ne plstart 2 0 0 8 1
77ret 25
78end
79note Every CPPC writable field and an unknown field must refuse.
80for field ulong 23
81if or and ge field 5 le field 9 or and ge field 14 le field 17 ge field 21
82if ne plstart 1 0 field 8 1
83ret 26
84end
85end
86end
87ret 0
88end