Added port support code to kernel