hi!
Please review: https://code.illumos.org/c/illumos-gate/+/3422

This is the re-work of serial port support for UEFI loader.  Some background and concerns are described with issue. Testing is still going on:)

Thanks,
Toomas