• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPILINUX_KEXEC_H
8 #define _UAPILINUX_KEXEC_H
9 #include <linux/types.h>
10 #define KEXEC_ON_CRASH 0x00000001
11 #define KEXEC_PRESERVE_CONTEXT 0x00000002
12 #define KEXEC_UPDATE_ELFCOREHDR 0x00000004
13 #define KEXEC_ARCH_MASK 0xffff0000
14 #define KEXEC_FILE_UNLOAD 0x00000001
15 #define KEXEC_FILE_ON_CRASH 0x00000002
16 #define KEXEC_FILE_NO_INITRAMFS 0x00000004
17 #define KEXEC_FILE_DEBUG 0x00000008
18 #define KEXEC_ARCH_DEFAULT (0 << 16)
19 #define KEXEC_ARCH_386 (3 << 16)
20 #define KEXEC_ARCH_68K (4 << 16)
21 #define KEXEC_ARCH_PARISC (15 << 16)
22 #define KEXEC_ARCH_X86_64 (62 << 16)
23 #define KEXEC_ARCH_PPC (20 << 16)
24 #define KEXEC_ARCH_PPC64 (21 << 16)
25 #define KEXEC_ARCH_IA_64 (50 << 16)
26 #define KEXEC_ARCH_ARM (40 << 16)
27 #define KEXEC_ARCH_S390 (22 << 16)
28 #define KEXEC_ARCH_SH (42 << 16)
29 #define KEXEC_ARCH_MIPS_LE (10 << 16)
30 #define KEXEC_ARCH_MIPS (8 << 16)
31 #define KEXEC_ARCH_AARCH64 (183 << 16)
32 #define KEXEC_ARCH_RISCV (243 << 16)
33 #define KEXEC_ARCH_LOONGARCH (258 << 16)
34 #define KEXEC_SEGMENT_MAX 16
35 struct kexec_segment {
36   const void * buf;
37   __kernel_size_t bufsz;
38   const void * mem;
39   __kernel_size_t memsz;
40 };
41 #endif
42