More ntdll impls; fix 64-bit Clang assembly

This commit is contained in:
2025-11-08 01:22:11 -07:00
parent 3dd9fb77ff
commit f56bd8e2a7
11 changed files with 896 additions and 22 deletions

View File

@@ -29,9 +29,10 @@
.endm
.macro LJMP64
push CS_64 # 64-bit code segment (Linux)
push offset 1f # 64-bit code offset
retf # far jump into 64-bit code
// Annoyingly, we can't assemble this in Intel syntax
.att_syntax prefix
ljmp $CS_64, $1f
.intel_syntax noprefix
.code64
1:
endbr64