Re:OpenBSD's kernel gets W^X treatment
by nbe on Wednesday January 14, 2015 @05:20AM
(#8885396)
Does anyone know what 'MI' and 'MD layer' refer to in Theo's message ? Machine Indepedent and Machine Dependent maybe ?
[ Parent
| on HN ]
Exactly yes. A *BSD thing not strictly just openbsd or whatever.
Perhaps it would help to see them "in action" here is a link to the linux emulation layer in freebsd, the MD chapter four specifically describes i386 (this is how you put syscall parameters on, and off, the stack on a i386) and the MI chapter five is a pile of structs that would be used by any emulation layer (NPTL, TLS, the joy of futex'es's (a linux thing that is kind of a mutex cache for speed, sorta kinda), and good luck with the ioctls).
https://www.freebsd.org/doc/en/articles/linux-emulation/inde...