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 / evidence / allen-omega-L694 / L748 / independent-review / raw / failed-probes / provider-semantic-invalid-time.om
| 1 | text Smagic "ALNPRV01" |
| 2 | global Sh uchar 40 |
| 3 | fn sword off ulong v ulong to void |
| 4 | for i ulong 8 |
| 5 | put Sh add off i uchar and shr v mul i 8 255 |
| 6 | end |
| 7 | end |
| 8 | fn shead op ulong now ulong arg ulong size ulong to void |
| 9 | for i ulong 8 |
| 10 | put Sh i get Smagic i |
| 11 | end |
| 12 | sword 8 op |
| 13 | sword 16 now |
| 14 | sword 24 arg |
| 15 | sword 32 size |
| 16 | end |
| 17 | fn swrite n ulong to bool |
| 18 | at = ulong 0 |
| 19 | while lt at n |
| 20 | left = sub n at |
| 21 | r = write 1 Sh at left |
| 22 | if le r 0 |
| 23 | ret false |
| 24 | end |
| 25 | at = add at ulong r |
| 26 | end |
| 27 | ret true |
| 28 | end |
| 29 | fn frame op ulong now ulong arg ulong size ulong to bool |
| 30 | shead op now arg size |
| 31 | ret swrite 40 |
| 32 | end |
| 33 | fn main to int |
| 34 | if not frame 1 1 77 0 |
| 35 | ret 74 |
| 36 | end |
| 37 | if not frame 1 2 78 0 |
| 38 | ret 74 |
| 39 | end |
| 40 | if not frame 6 3 0 0 |
| 41 | ret 74 |
| 42 | end |
| 43 | ret 0 |
| 44 | end |