NetBSD has bioscall() function

Thomas Bocek draft at
Sun Aug 26 22:55:47 UTC 2001

Joel Sherrill wrote:

> How does this functionality look?
> It is the NetBSD bioscall() routine.   The man page is here:
> I know there are some problems going back into real mode but am
> curious to hear what everyone thinks. 

I took a look at the code and it should work. But compared to the memory 
probing code in the linux source tree, the bsd code is huge!
AFAIK the grub stores the memory size in RAM, jumps to protected mode, 
writes the address of the memory location into ebx and jumps finally to 
the application. Then the application can take the memory size from the RAM.
Here is my suggestion: Copy the linux code into the start16 file, store 
the memory size somewhere at the beginning (is always 7c00:0000 on a pc) 
and then jump to the application. Write a method that can read the 
memory location. After that RTEMS should work with grub and start16 
without the old memory probing function.

Thomas Bocek

More information about the users mailing list