how to tell linux (on x86) to ignore 1M or memory
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Rene Herman
Quoted 4 lines · Bart Trojanowski
I need to preserve some state from the bios before entering protected mode. For now I want to copy it into some ram accessible by real-mode, say the last megabyte visible in real-mode.
Quoted 7 lines
Quoted 1 line
What's the easiest way to have linux ignore the megabyte starting at 15M?
Note that real-mode can only access the first megabyte (*) and not the first
16. 16MB is the 16-bit protected mode (286) limit.(*) well, the first 1M + 64K - 16 bytes using segment FFFF assuming A20 is enabled and x > 1 in x86...
Interrupt 15h, function 87h allows copying from/to extended memory. You might like to look into Ralph Brown's interrupt list for more details.
You could also cpio-gzip the data and append it to the initramfs.
Signature · 4 lines
Fun things to slip into your budget Does that line item say 'Personal Massage System' Oops, it's supposed to be 'Message'. Go ahead and sign the authorization, Boss; I'll correct it later. (Iike Hell I will)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Rene Herman
The point was that real mode could only access the first 1M, not the first 16... :-)
The real mode on i386+ can actually access the whole 4GB address range due to a former-bug-now-feature in the i386+. This "bug" causes the segment limit to not be reset on return to real mode, but only on subsequent assigns to the segment registers/selectors. Using a rarely used segment register like GS, you could use extended memory in your program.
Obviously this needs 1) Entering and returning from protected mode, 2) all programs to agree not to clobber GS and 3) not using v86 mode (EMM386.exe). Therefore and because it was discovered in the late days of DOS it was not in widespread use. Some DOS extenders were reported to use it ...
http://www.programmersheaven.com/mb/x86_asm/344953/344953/readmessage.aspx
Signature · 4 lines
The programmer's National Anthem is 'AAAAAAAAHHHHHHHH' Friß, Spammer: [email protected] [email protected] [email protected]
Quoted 2 lines · Bodo Eggert
The real mode on i386+ can actually access the whole 4GB address range due to a former-bug-now-feature in the i386+.
Generally called "unreal mode". Yes, sure. Just a hack though.
Rene.