Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/evidence/allen-omega-L694/L734/independent-review/probes/L737-interleave.om # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / evidence / allen-omega-L694 / L734 / independent-review / probes / L737-interleave.om` 143 lines ยท 3027 bytes Raw Blame History 1 note Independent L737 application event-interleaving probe. Seeded Omega only. 2 global Probeout uchar 8192 3 global Pstate ulong 2 4 fn probecheck ok bool id ulong to void 5 put Pstate 0 get Outlen 0 6 put Pstate 1 get Err 0 7 for i ulong get Outlen 0 8 put Probeout i get Outb i 9 end 10 check ok id 11 for i ulong get Pstate 0 12 put Outb i get Probeout i 13 end 14 put Outlen 0 get Pstate 0 15 put Err 0 get Pstate 1 16 end 17 fn line lineid ulong conv ulong to void 18 outreset 19 emitb 83 20 emitb 65 21 emitb 89 22 emitb 32 23 emitn conv 24 emitb 32 25 emitb 49 26 emitb 47 27 emitb 49 28 emitb 32 29 emitb 111 30 emitb 107 31 put Inlen 0 get Outlen 0 32 for i ulong get Outlen 0 33 put In i get Outb i 34 end 35 b = packet 2 get Q 1 lineid 0 0 36 put Inlen 0 get Outlen 0 37 for i ulong get Outlen 0 38 put In i get Outb i 39 end 40 end 41 fn waitline lineid ulong to void 42 outreset 43 emitb 87 44 emitb 65 45 emitb 73 46 emitb 84 47 emitb 32 48 emitb 49 49 put Inlen 0 get Outlen 0 50 for i ulong get Outlen 0 51 put In i get Outb i 52 end 53 b = packet 2 get Q 1 lineid 0 0 54 put Inlen 0 get Outlen 0 55 for i ulong get Outlen 0 56 put In i get Outb i 57 end 58 end 59 fn prompt to void 60 put Inlen 0 5 61 put In 0 104 62 put In 1 101 63 put In 2 108 64 put In 3 108 65 put In 4 111 66 end 67 fn readwire to void 68 put Inlen 0 get Outlen 0 69 for i ulong get Outlen 0 70 put In i get Outb i 71 end 72 end 73 fn main to int 74 probecheck appinit 77 0 1 75 prompt 76 probecheck appask 0 2 77 probecheck apppoll 0 true 3 78 probecheck appsent 0 true 4 79 probecheck apppoll 0 true 5 80 probecheck appsent 0 true 6 81 waitline 1 82 probecheck appreceive 1 7 83 probecheck eq get R 1 1 8 84 probecheck eq get T 13 1 9 85 note Distinct LINE is backpressured while GOT1 is pending; retry after receipt send. 86 line 2 1 87 probecheck not appreceive 2 10 88 probecheck eq get Q 2 1 11 89 probecheck eq get T 13 1 12 90 probecheck apppoll 2 true 13 91 readwire 92 probecheck pkparse 14 93 probecheck eq get N 0 3 15 94 probecheck eq get N 2 1 16 95 probecheck appsent 2 true 17 96 probecheck eq get T 13 0 18 97 line 2 1 98 probecheck appreceive 3 19 99 probecheck eq get A 2 1 20 100 probecheck eq get R 1 0 21 101 probecheck eq get T 13 2 22 102 probecheck apppoll 3 true 23 103 readwire 104 probecheck pkparse 24 105 probecheck eq get N 0 3 25 106 probecheck eq get N 2 2 26 107 probecheck appsent 3 true 27 108 probecheck not apppoll 4 true 28 109 note Replayed acknowledged LINE is treated as duplicate and gets its own GOT. 110 waitline 1 111 probecheck appreceive 4 29 112 probecheck eq get T 13 1 30 113 probecheck apppoll 4 true 31 114 readwire 115 probecheck pkparse 32 116 probecheck eq get N 0 3 33 117 probecheck eq get N 2 1 34 118 probecheck appsent 4 true 35 119 probecheck not apppoll 5 true 36 120 note Cancellation discards the offered JOB but wire and conversation counters persist. 121 prompt 122 probecheck appask 5 37 123 probecheck apppoll 5 true 38 124 probecheck eq get T 10 1 39 125 appcancel 126 probecheck eq get T 5 0 40 127 probecheck not appsent 5 true 41 128 probecheck eq get Q 1 2 42 129 probecheck eq get R 0 2 43 130 prompt 131 probecheck appask 6 44 132 probecheck eq get Q 1 3 45 133 probecheck eq get R 0 3 46 134 appcancel 135 old = get R 9 136 put Q 1 `4294967295` 137 prompt 138 probecheck not appask 7 47 139 probecheck eq get R 0 3 48 140 probecheck eq get R 9 old 49 141 probecheck eq get Q 1 `4294967295` 50 142 ret int get Fails 0 143 end