Add codes for XNU; bug fixes
3 files changed