WIP: Incorporate Illumos current ARC code. Needs further work - missing tunables and also some possible user space code missing.