Skip to content

Commit 379cf80

Browse files
committed
Merge tag 'mips_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fixes from Thomas Bogendoerfer: - fix for accesing gic via vdso - two build fixes * tag 'mips_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: MIPS: vdso: Invalid GIC access through VDSO mips: disable branch profiling in boot/decompress.o mips: always link byteswap helpers into decompressor
2 parents af4cf6a + 47ce852 commit 379cf80

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

arch/mips/boot/compressed/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GCOV_PROFILE := n
4040
UBSAN_SANITIZE := n
4141

4242
# decompressor objects (linked with vmlinuz)
43-
vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o
43+
vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o $(obj)/bswapsi.o
4444

4545
ifdef CONFIG_DEBUG_ZBOOT
4646
vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o
@@ -54,7 +54,7 @@ extra-y += uart-ath79.c
5454
$(obj)/uart-ath79.c: $(srctree)/arch/mips/ath79/early_printk.c
5555
$(call cmd,shipped)
5656

57-
vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o
57+
vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o
5858

5959
extra-y += ashldi3.c
6060
$(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE

arch/mips/boot/compressed/decompress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Author: Wu Zhangjin <wuzhangjin@gmail.com>
88
*/
99

10+
#define DISABLE_BRANCH_PROFILING
11+
1012
#include <linux/types.h>
1113
#include <linux/kernel.h>
1214
#include <linux/string.h>

arch/mips/include/asm/vdso/vdso.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static inline const struct vdso_data *get_vdso_data(void)
6767

6868
static inline void __iomem *get_gic(const struct vdso_data *data)
6969
{
70-
return (void __iomem *)data - PAGE_SIZE;
70+
return (void __iomem *)((unsigned long)data & PAGE_MASK) - PAGE_SIZE;
7171
}
7272

7373
#endif /* CONFIG_CLKSRC_MIPS_GIC */

0 commit comments

Comments
 (0)