XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESystem

【Rust】XFE系统,基于Rust和汇编

公开
关注 0 Fork 0 Star 0
UTF-8
// Single-CPU scheduler virtualization of Cosmos 3.0.94's native EH chain.
// No allocation, managed call, IRQ state change or thread switch occurs here.
.intel_syntax noprefix
.text
.extern __cosmos_exinfo_stack_head
.global XfeRuntimeGetExInfoHead
.type XfeRuntimeGetExInfoHead,@function
XfeRuntimeGetExInfoHead:
    mov rax, [rip + __cosmos_exinfo_stack_head]
    ret
.size XfeRuntimeGetExInfoHead, .-XfeRuntimeGetExInfoHead
.global XfeRuntimeSetExInfoHead
.type XfeRuntimeSetExInfoHead,@function
XfeRuntimeSetExInfoHead:
    mov [rip + __cosmos_exinfo_stack_head], rdi
    ret
.size XfeRuntimeSetExInfoHead, .-XfeRuntimeSetExInfoHead
.section .note.GNU-stack,"",@progbits