-
November 25th, 2008, 12:39 PM
#1
How to Switch into Protected Mode
I need to make modifications to BIOS code which runs at PowerUp or Boot time and I need to access more than the lower 1,048,576 bytes of memory.
Is it possible to switch into Protected Mode at this time in order to access more memory? If so, how? What is the instruction sequence?
Alternatively, can anyone suggest a different approach?
Thanks,
Bob.
-
November 28th, 2008, 11:20 PM
#2
Re: How to Switch into Protected Mode
Hi PDP8,
Haven't dealt with that recently or in depth, but in order to switch into PMode you need to disable interrupts (opcode cli), define the table of global/local descriptors, define interrupts table, change the Least Significant Bit of special register CL0 and enable interrupts (opcode sti).
Depending on your specific purpose and the logic intended you might not really need access to memory above the 1Mb. Would you provide more info?
Good luck.
IƱaki Viggers
-
December 1st, 2008, 12:51 PM
#3
Re: How to Switch into Protected Mode
All I need to do is read several bytes of data from the upper end of the 4GB address space, where an MD5 message digest of the bios will have been stored.
The intent is to compare the current MD5 with the pre-stored value to ensure that the BIOS has not been tampered with.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|