hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/s390/kernel/os_info.c
....@@ -15,6 +15,7 @@
1515 #include <asm/checksum.h>
1616 #include <asm/lowcore.h>
1717 #include <asm/os_info.h>
18
+#include <asm/asm-offsets.h>
1819
1920 /*
2021 * OS info structure has to be page aligned
....@@ -123,7 +124,7 @@
123124 return;
124125 if (!OLDMEM_BASE)
125126 goto fail;
126
- if (copy_oldmem_kernel(&addr, &S390_lowcore.os_info, sizeof(addr)))
127
+ if (copy_oldmem_kernel(&addr, (void *)__LC_OS_INFO, sizeof(addr)))
127128 goto fail;
128129 if (addr == 0 || addr % PAGE_SIZE)
129130 goto fail;