Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Just two ARM fixes this time: one to fix the hyp-stub for older ARM CPUs, and another to fix the set_memory_xx() permission functions to deal with zero sizes correctly" * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: ARM: 8544/1: set_memory_xx fixes ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs
This commit is contained in:
Коммит
dd273a8071
|
@ -195,5 +195,7 @@ CFLAGS_font.o := -Dstatic=
|
||||||
$(obj)/font.c: $(FONTC)
|
$(obj)/font.c: $(FONTC)
|
||||||
$(call cmd,shipped)
|
$(call cmd,shipped)
|
||||||
|
|
||||||
|
AFLAGS_hyp-stub.o := -Wa,-march=armv7-a
|
||||||
|
|
||||||
$(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S
|
$(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S
|
||||||
$(call cmd,shipped)
|
$(call cmd,shipped)
|
||||||
|
|
|
@ -88,6 +88,7 @@ obj-$(CONFIG_DEBUG_LL) += debug.o
|
||||||
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
||||||
|
|
||||||
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
|
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
|
||||||
|
AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a
|
||||||
ifeq ($(CONFIG_ARM_PSCI),y)
|
ifeq ($(CONFIG_ARM_PSCI),y)
|
||||||
obj-$(CONFIG_SMP) += psci_smp.o
|
obj-$(CONFIG_SMP) += psci_smp.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages,
|
||||||
WARN_ON_ONCE(1);
|
WARN_ON_ONCE(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!numpages)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (start < MODULES_VADDR || start >= MODULES_END)
|
if (start < MODULES_VADDR || start >= MODULES_END)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче