diff options
| author | spv420 <spv@spv.sh> | 2022-08-01 03:57:04 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-08-01 03:57:04 -0400 |
| commit | 5ed6a7bb64ecf24c6dd12506688b43d9f33b65d2 (patch) | |
| tree | 5ccf8eb5c4897b2fbe79c68d9c9b67a761b662dc /src/stage4/main.js | |
| parent | 54b6c9d393e2384f7833155509f2e09677360390 (diff) | |
push for later
Diffstat (limited to 'src/stage4/main.js')
| -rw-r--r-- | src/stage4/main.js | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/stage4/main.js b/src/stage4/main.js index 6d14de1..7baffe2 100644 --- a/src/stage4/main.js +++ b/src/stage4/main.js @@ -122,7 +122,37 @@ function main() { return value; }, "\t")); p0laris_log("here"); - } + + var mess = shit_heap(0x1000); + var InP = mess; + var OutP = mess; + + write_u32(InP + 0x18, 1); + write_u32(InP + 0x1c, 0x69); + write_u32(InP + 0x20, 0x420); + write_u32(InP + 0x24, ((19 << 16) + (MACH_MSG_OOL_PORTS_DESCRIPTOR << 24))); + write_u32(InP + 0x28, 0x1234); + write_u32(InP + 0x2c, 0x5678); + write_u32(InP + 0x30, 0x9999); + write_u32(InP + 0x0, 0x80001513); + write_u32(InP + 0x8, 0x4141); + write_u32(InP + 0xc, mig_get_reply_port()); + write_u32(InP + 0x14, 3403); + + p0laris_log("here"); + var InP_ptr = new Request_r3(1, InP); + p0laris_log("here"); + + p0laris_log("%s", JSON.stringify(InP_ptr.deref(), function (key, value) { + if (typeof value === 'number') { + return "0x" + value.toString(16); + } + + return value; + }, "\t")); +} + +// return; var tfp0 = get_kernel_task(); |
