lrmi doesn't work under freebsd 5.* or 6.0
Brought to you by:
hoof
Enclose is a patch:
- need to include sys/ucontext.h
- need to use sys/consio.h instead of machine/console.h
- /dev/mem can't be mmapped as private
Patch tested on 5.4 and 6.0 beta4.
I believe the change will work on older freebsd versions
and net/open bsd, however this is only from examining
the source code repositories, it hasn't actually be
tested.
Also get intermittent failures of vbetest on freebsd;
cause unknown, but I suspect it as vm_86 issue,
not a lrmi issue.
patch
Logged In: YES
user_id=1385
The private mmapped /dev/mem is for the interrupt vectors.
I'd prefer to have the effect of the private mapping to
reduce the chance of a null pointer reference destroying the
only copy of the interrupt vectors. Mapping /dev/zero and
copying from /dev/mem should be close enough.
Logged In: YES
user_id=1385
I've applied your header file changes and reworked the
interrupt vector mapping. If you could test it for me that
would be great.
Logged In: YES
user_id=66101
Seems to work great. Thanks a lot!