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/native/kernel/x86/model/host_call.S # 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 / native / kernel / x86 / model / host_call.S` 42 lines ยท 891 bytes Raw Blame History 1 /* Host qualification adapter for the pinned Omega frame-slot ABI. */ 2 .text 3 .global omega_run 4 .type omega_run,@function 5 omega_run: 6 push %rbp 7 push %rbx 8 push %r12 9 push %r13 10 push %r14 11 push %r15 12 mov %rsp, host_saved_sp(%rip) 13 sub $66048, %rsp 14 and $-16, %rsp 15 lea 65536(%rsp), %rbp 16 mov %rsi, -8(%rbp) 17 mov %rdx, -16(%rbp) 18 mov %rcx, -24(%rbp) 19 mov %r8, -32(%rbp) 20 lea host_return(%rip), %rax 21 mov %rax, -264(%rbp) 22 lea host_vtable(%rip), %r14 23 lea -65536(%rbp), %r15 24 lea -264(%rbp), %rsp 25 mov %rsp, %r12 26 movl $0, host_trap_code(%rip) 27 jmp *%rdi 28 host_return: 29 mov host_saved_sp(%rip), %rsp 30 pop %r15 31 pop %r14 32 pop %r13 33 pop %r12 34 pop %rbx 35 pop %rbp 36 ret 37 .global host_trap 38 host_trap: 39 mov %esi, host_trap_code(%rip) 40 xor %eax, %eax 41 jmp host_return 42 .section .note.GNU-stack,"",@progbits