Hi Frank,
I posted the same question a few days ago, the answer I got
was that they know about the bug, and they are working on
fixing it soon.
Which tells me that a patch is not yet available ;)
Have a good time, btw, I keep using Bochs here until Plex86
is really ready (and fast).
l8r,
Dave.
Frank Cornelis wrote:
> Hi,
>
> I'm the author of a little OS called EduOS.
> I normally use bochs to test my OS.
> But, since Plex86 is 'the new Bochs' I decided to try it you.
> I use bochs as plugin and everything works except that I can't
> scan the memory for its size. Under Bochs this was possible.
> When doing so under Plex86 the software crashes.
> Here's the source code of the memory scanner (which works fine on my PII
> and under Bochs):
>
> extern dword _biosMemorySize; /* size by the BIOS <= 64 MB */
>
> dword getMemorySize () {
> dword upperLimit;
> /* scan the memory to get the actual memory size */
> upperLimit = ceil (_biosMemorySize, PAGE_SIZE);
> do {
> upperLimit += PAGE_SIZE;
> *(byte *)upperLimit = 1; /* try to write 1 */
> } while (*(byte *)upperLimit == 1); /* try to read the same 1 */
> upperLimit -= PAGE_SIZE; /* because of DO-WHILE loop */
> if (upperLimit < _biosMemorySize)
> return _biosMemorySize; /* we trust on bios telling the truth */
> else
> return upperLimit;
> }
>
> I think this should be fixed because a memory scan is a very common thing
> to do for an operating system at init time.
> Is there a patch available for this "bug"?
>
> You can contact me at [EMAIL PROTECTED]
>
> Frank.