#1 lrmi doesn't work under freebsd 5.* or 6.0

open
nobody
None
5
2005-09-11
2005-09-11
No

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.

Discussion

  • Mark Diekhans

    Mark Diekhans - 2005-09-11

    patch

     
  • Josh Vanderhoof

    Josh Vanderhoof - 2005-09-19

    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.

     
  • Josh Vanderhoof

    Josh Vanderhoof - 2005-09-20

    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.

     
  • Mark Diekhans

    Mark Diekhans - 2005-09-21

    Logged In: YES
    user_id=66101

    Seems to work great. Thanks a lot!

     

Log in to post a comment.