Lines Matching refs:kernel
4 XNU kernel is part of the Darwin operating system for use in macOS and iOS operating systems. XNU i…
5 XNU is a hybrid kernel combining the Mach kernel developed at Carnegie Mellon University with compo…
12 …* `SETUP` - Basic set of tools used for configuring the kernel, versioning and kextsymbol manageme…
15 * `libsa` - kernel bootstrap code for startup
17 * `libkdd` - source for user library for parsing kernel data like kernel chunked data.
18 * `makedefs` - top level rules and defines for kernel build.
19 * `osfmk` - Mach kernel based subsystems
23 * `tools` - A set of utilities for testing, debugging and profiling kernel.
28 Building `DEVELOPMENT` kernel
31 The xnu make system can build kernel based on `KERNEL_CONFIGS` & `ARCH_CONFIGS` variables as argume…
39 …lopment`, `release`, `profile` and configures compilation flags and asserts throughout kernel code.
42 To build a kernel for the same architecture as running OS, just type
47 Additionally, there is support for configuring architectures through `ARCH_CONFIGS` and kernel conf…
54 * By default, architecture is set to the build machine architecture, and the default kernel
58 This will also create a bootable image, kernel.[config], and a kernel binary
59 with symbols, kernel.[config].unstripped.
61 To intall the kernel into a DSTROOT, use the `install_kernels` target:
66 For a more satisfying kernel debugging experience, with access to all
68 DEBUG kernel, add something like:
75 * To build with RELEASE kernel configuration
80 Building FAT kernel binary
105 …repository is created during the install phase; this is a "bundle" named kernel.development.\<vari…
106 …ABS debug information format (where debug information is embedded in the kernel.development.unstri…
115 To test the xnu kernel, you need to build a kernelcache that links the kexts and
116 kernel together into a single bootable image.
121 So you can setup new kernel as
123 $ cp BUILD/obj/DEVELOPMENT/X86_64/kernel.development /System/Library/Kernels/
129 …$ kextcache -q -z -a x86_64 -l -n -c /var/tmp/kernelcache.test -K /var/tmp/kernel.test /System/Lib…
136 The development kernel and iBoot supports configuring boot arguments so that we can safely boot int…
139 1. Create kernel cache using the kextcache command as `/kernelcache.test`
158 So if the kernel panic's you can easily power reboot and recover back to original kernel.
187 `Kernel.framework` is used by kernel extensions.\
218 d. `KERNELFILES` : To make header file available in kernel level -
223 for kernel extensions -
277 to everyone for kernel extensions.
284 available for Apple internal for kernel extensions.
310 want to export a function only to kernel level but not user level.
313 to control the text generated before a header file is installed. The kernel
321 exposed in user/kernel headers installed within the AppleInternal
324 kernel and Apple internal kernel extensions and omitted from user
332 f. `KERNEL` : If defined, enclosed code is available within xnu and kernel
383 new functionality that is exclusively relevant to the trusted kernel and
384 updates the definition/understanding of what being a trusted kernel means).
394 By default, the kernel reboots in the event of a panic.
396 To boot a kernel so it can be debugged by an attached machine, override the `kdp_match_name` boot-a…
399 Use LLDB to debug the kernel:
401 ; xcrun -sdk macosx lldb <path-to-unstripped-kernel>
404 The debug info for the kernel (dSYM) comes with a set of macros to support kernel debugging.
405 To load these macros automatically when attaching to the kernel, add the following to `~/.lldbinit`: