nanos
nanos copied to clipboard
Booting Question
Hey man, how come you booted with 64 bit? I have seen that you must boot at 32✌🏿
Hey,
Ah shoot, it's been a long time and i don't remember. Looking at boot.asm, it does look like it starts in 32-bit protected mode and only goes to 64-bit at the very end. The first GDT it sets up i think is the 32-bit one. The second one it looks like is 64-bit, which it sets up with lgdt right before switching to "long mode", which i think is 64-bit. Maybe you see this, though, and i don't understand the question.
Could you point me to what you have seen and maybe describe a bit more what seems wrong?