Minimum amount of pages
Posted: Sun Aug 17, 2003 9:37 am
I've had a discussion with a professor of mine about this
Technically speaking, what is the absolute minimum of pages (possibly hand-crafted) that must be loaded before the first instruction can be executed (you can pick the instruction yourself) ? This working on a 2-level paging structure such as x86.
His answer was 3, since his idea was, page directory, page table & page with code.
My idea is that you can put a single page directory entry on the same physical page as a page table entry, and still have enough place left over for at least 1 opcode. My best idea on x86 came to 5 bytes, namely 0x03 0x00 0x00 0x00 0xFC (with eip set to 0x04, and this page loaded to physical 0x0)
Is my answer valid?
Technically speaking, what is the absolute minimum of pages (possibly hand-crafted) that must be loaded before the first instruction can be executed (you can pick the instruction yourself) ? This working on a 2-level paging structure such as x86.
His answer was 3, since his idea was, page directory, page table & page with code.
My idea is that you can put a single page directory entry on the same physical page as a page table entry, and still have enough place left over for at least 1 opcode. My best idea on x86 came to 5 bytes, namely 0x03 0x00 0x00 0x00 0xFC (with eip set to 0x04, and this page loaded to physical 0x0)
Is my answer valid?