forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/x86/kernel/asm-offsets_32.c
....@@ -3,12 +3,9 @@
33 # error "Please do not build this file directly, build asm-offsets.c instead"
44 #endif
55
6
-#include <asm/ucontext.h>
6
+#include <linux/efi.h>
77
8
-#define __SYSCALL_I386(nr, sym, qual) [nr] = 1,
9
-static char syscalls[] = {
10
-#include <asm/syscalls_32.h>
11
-};
8
+#include <asm/ucontext.h>
129
1310 /* workaround for a warning with -Wmissing-prototypes */
1411 void foo(void);
....@@ -62,6 +59,5 @@
6259 #endif
6360
6461 BLANK();
65
- DEFINE(__NR_syscall_max, sizeof(syscalls) - 1);
66
- DEFINE(NR_syscalls, sizeof(syscalls));
62
+ DEFINE(EFI_svam, offsetof(efi_runtime_services_t, set_virtual_address_map));
6763 }