refactor: add architecture

This commit is contained in:
2026-10-02 13:32:40 +02:00
parent c4fb939e48
commit 387db2dcf7
11 changed files with 283 additions and 53 deletions
+19
View File
@@ -0,0 +1,19 @@
.section .text
.code64
.global reload_segments
.type reload_segments, @function
reload_segments:
pushq %rdi
leaq .reload_cs(%rip), %rax
pushq %rax
lretq
.reload_cs:
movw %si, %ax
movw %ax, %ds
movw %ax, %es
movw %ax, %fs
movw %ax, %gs
movw %ax, %ss
ret