nanos icon indicating copy to clipboard operation
nanos copied to clipboard

Booting Question

Open barbenhamou opened this issue 1 year ago • 1 comments

Hey man, how come you booted with 64 bit? I have seen that you must boot at 32✌🏿

barbenhamou avatar Jan 07 '24 11:01 barbenhamou

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?

nwg avatar Jan 26 '24 23:01 nwg