merge newfstat variants
[trinity.git] / syscalls / kexec_load.c
blob6567364ee7f08b276bcfac2a4255066c48a15a10
1 /*
2 * SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments,
3 struct kexec_segment __user *, segments, unsigned long, flags)
4 */
6 #define KEXEC_ON_CRASH 0x00000001
7 #define KEXEC_PRESERVE_CONTEXT 0x00000002
9 #include "sanitise.h"
11 struct syscallentry syscall_kexec_load = {
12 .name = "kexec_load",
13 .num_args = 4,
14 .flags = CAPABILITY_CHECK,
15 .arg1name = "entry",
16 .arg1type = ARG_ADDRESS,
17 .arg2name = "nr_segments",
18 .arg2type = ARG_LEN,
19 .arg3name = "segments",
20 .arg3type = ARG_ADDRESS,
21 .arg4name = "flags",
22 .arg4type = ARG_LIST,
23 .arg4list = {
24 .num = 2,
25 .values = { KEXEC_ON_CRASH, KEXEC_PRESERVE_CONTEXT },