共有 3 篇文章
Unreal mode
2023-02-27 - 2024-09-15
AOS
Unreal mode consists of breaking the 64KiB limit of real mode segments (while retaining 16-bit instructions and the segment * 16 + offset addressing mode) by tweaking the descriptor caches.
Stack alignment in x64 assembly
2022-08-23 - 2024-09-15
AOS
gcc会在call指令之前让rsp按16字节对齐。 cpu在call的时候将rip压栈rsp -= 8,所以进入被调用者之后rsp = 8 (mod 16)。如果在这个函数里面还要c
BOOT: 从FAT32分区搜索并读取loader
2022-08-22 - 2024-09-15
AOS
初始化寄存器 我将物理地址0x050000-0x070008之间的内存分配给了堆栈。栈顶设置为0x070008的原因是,kernel函数在编译后会在函数开头加上这