From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 22 Oct 2024 10:36:11 +0000 Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM --- kernel/arch/mips/include/asm/mach-loongson64/spaces.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kernel/arch/mips/include/asm/mach-loongson64/spaces.h b/kernel/arch/mips/include/asm/mach-loongson64/spaces.h index e85bc1d..ce04e99 100644 --- a/kernel/arch/mips/include/asm/mach-loongson64/spaces.h +++ b/kernel/arch/mips/include/asm/mach-loongson64/spaces.h @@ -6,5 +6,12 @@ #define CAC_BASE _AC(0x9800000000000000, UL) #endif /* CONFIG_64BIT */ +/* Skip 128k to trap NULL pointer dereferences */ +#define PCI_IOBASE _AC(0xc000000000000000 + SZ_128K, UL) +#define PCI_IOSIZE SZ_16M +#define MAP_BASE (PCI_IOBASE + PCI_IOSIZE) + +#define IO_SPACE_LIMIT (PCI_IOSIZE - 1) + #include <asm/mach-generic/spaces.h> #endif -- Gitblit v1.6.2