microblaze: Define percpu sestion in linker file
authorStefan Asserhall <stefan.asserhall@xilinx.com>
Tue, 21 Jan 2020 11:11:07 +0000 (12:11 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 25 Feb 2020 11:33:19 +0000 (12:33 +0100)
Adding SMP requires to have percpu section defined.

Signed-off-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
arch/microblaze/kernel/vmlinux.lds.S

index 2c09fa3a8a01be788b2874b49e1ce2c3ec3dd872..df07b3d06cd6b4c4fc256a74d050229dc0c56e5c 100644 (file)
@@ -13,6 +13,7 @@ ENTRY(microblaze_start)
 
 #define RO_EXCEPTION_TABLE_ALIGN       16
 
+#include <asm/cache.h>
 #include <asm/page.h>
 #include <asm-generic/vmlinux.lds.h>
 #include <asm/thread_info.h>
@@ -89,6 +90,8 @@ SECTIONS {
                _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
        }
 
+       PERCPU_SECTION(L1_CACHE_BYTES)
+
        . = ALIGN(PAGE_SIZE);
        __init_begin = .;