Hacker News new | ask | show | jobs
by nbe 4167 days ago
Does anyone know what 'MI' and 'MD layer' refer to in Theo's message ? Machine Indepedent and Machine Dependent maybe ?
1 comments

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...

Very interesting link, thanks.