I have this in my bootloader:
vesa_pmode_interface dw ''
...code to put stuff in vesa_pmode_interface
And I want to access this variable in my Kernel ASM. How would I do this? Is there even a way I could?
Pointers in ASM
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Pointers in ASM
er ... if i understand well, your problem is just to pass the pointer to the Vesa Pmode Interface between the different stages of your boot... so i suggest you simply do
mov ax, [vesa_...]
just before you start your kernel
and have a kvesa_pmode_itf variable in your kernel that will simply be filled at kernel startup with
mov [kvesa_pmode_itf],ax
mov ax, [vesa_...]
just before you start your kernel
and have a kvesa_pmode_itf variable in your kernel that will simply be filled at kernel startup with
mov [kvesa_pmode_itf],ax