space available for second stage....
Posted: Mon Sep 27, 2010 4:02 am
Hi!
I set my page structure at the end of my second stage loader. Then through NASM-directives, I align the table to 4kb bondaries. All work fine. Then I enable in my hypervisor the "legacy network adapter ". What I know for sure is that when doing this, the hypervisor add an PCI device, and in such device everyone of the legacy network adapters appears like a function. The problem was that when I enable legacy network adapter, something like hole appears in the palce whrere my page structure is and remap my first 2MB entry, and entering long mode don't work properly, this is what I know.
To avoid this problem I put the page structure in 1000h and now work fine.
But soon my second stage code will grow enough to touch the "hole" of the legacy network adapter. I am definitively not capable to program decent hardware detection and driver loading in less code. I don't know where exactly this "hole" appears but it is about 5KB + 100000h.
So first, correct me if I am wrong with my assumptions.
Second if I am correct, how do you face this problem? How big is your second stage? What this hole can be?
Cheers!
I set my page structure at the end of my second stage loader. Then through NASM-directives, I align the table to 4kb bondaries. All work fine. Then I enable in my hypervisor the "legacy network adapter ". What I know for sure is that when doing this, the hypervisor add an PCI device, and in such device everyone of the legacy network adapters appears like a function. The problem was that when I enable legacy network adapter, something like hole appears in the palce whrere my page structure is and remap my first 2MB entry, and entering long mode don't work properly, this is what I know.
To avoid this problem I put the page structure in 1000h and now work fine.
But soon my second stage code will grow enough to touch the "hole" of the legacy network adapter. I am definitively not capable to program decent hardware detection and driver loading in less code. I don't know where exactly this "hole" appears but it is about 5KB + 100000h.
So first, correct me if I am wrong with my assumptions.
Second if I am correct, how do you face this problem? How big is your second stage? What this hole can be?
Cheers!