Skip to content

Commit 06951c9

Browse files
asserhallMichal Simek
authored andcommitted
microblaze: Define percpu sestion in linker file
Adding SMP requires to have percpu section defined. Signed-off-by: Stefan Asserhall <[email protected]> Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
1 parent d9d2b2f commit 06951c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/microblaze/kernel/vmlinux.lds.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENTRY(microblaze_start)
1313

1414
#define RO_EXCEPTION_TABLE_ALIGN 16
1515

16+
#include <asm/cache.h>
1617
#include <asm/page.h>
1718
#include <asm-generic/vmlinux.lds.h>
1819
#include <asm/thread_info.h>
@@ -89,6 +90,8 @@ SECTIONS {
8990
_KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
9091
}
9192

93+
PERCPU_SECTION(L1_CACHE_BYTES)
94+
9295
. = ALIGN(PAGE_SIZE);
9396
__init_begin = .;
9497

0 commit comments

Comments
 (0)