forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/microblaze/kernel/vmlinux.lds.S
....@@ -11,6 +11,9 @@
1111 OUTPUT_ARCH(microblaze)
1212 ENTRY(microblaze_start)
1313
14
+#define RO_EXCEPTION_TABLE_ALIGN 16
15
+
16
+#include <asm/cache.h>
1417 #include <asm/page.h>
1518 #include <asm-generic/vmlinux.lds.h>
1619 #include <asm/thread_info.h>
....@@ -46,14 +49,12 @@
4649 __fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET) {
4750 _fdt_start = . ; /* place for fdt blob */
4851 *(__fdt_blob) ; /* Any link-placed DTB */
49
- . = _fdt_start + 0x8000; /* Pad up to 32kbyte */
52
+ . = _fdt_start + 0x10000; /* Pad up to 64kbyte */
5053 _fdt_end = . ;
5154 }
5255
5356 . = ALIGN(16);
54
- RODATA
55
- EXCEPTION_TABLE(16)
56
- NOTES
57
+ RO_DATA(4096)
5758
5859 /*
5960 * sdata2 section can go anywhere, but must be word aligned
....@@ -70,7 +71,7 @@
7071 }
7172
7273 _sdata = . ;
73
- RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
74
+ RW_DATA(32, PAGE_SIZE, THREAD_SIZE)
7475 _edata = . ;
7576
7677 /* Under the microblaze ABI, .sdata and .sbss must be contiguous */
....@@ -88,6 +89,8 @@
8889 _ssro_size = _essro - _ssro ;
8990 _KERNEL_SDA_BASE_ = _ssro + (_ssro_size / 2) ;
9091 }
92
+
93
+ PERCPU_SECTION(L1_CACHE_BYTES)
9194
9295 . = ALIGN(PAGE_SIZE);
9396 __init_begin = .;
....@@ -116,8 +119,6 @@
116119 .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) {
117120 CON_INITCALL
118121 }
119
-
120
- SECURITY_INIT
121122
122123 __init_end_before_initramfs = .;
123124