From a5969cabbb4660eab42b6ef0412cbbd1200cf14d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 12 Oct 2024 07:10:09 +0000 Subject: [PATCH] 修改led为gpio --- kernel/arch/x86/include/asm/highmem.h | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/kernel/arch/x86/include/asm/highmem.h b/kernel/arch/x86/include/asm/highmem.h index 032e020..0f420b2 100644 --- a/kernel/arch/x86/include/asm/highmem.h +++ b/kernel/arch/x86/include/asm/highmem.h @@ -23,6 +23,7 @@ #include <linux/interrupt.h> #include <linux/threads.h> +#include <asm/kmap_types.h> #include <asm/tlbflush.h> #include <asm/paravirt.h> #include <asm/fixmap.h> @@ -57,16 +58,10 @@ #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT) #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) +void *kmap_atomic_pfn(unsigned long pfn); +void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot); + #define flush_cache_kmaps() do { } while (0) - -#define arch_kmap_local_post_map(vaddr, pteval) \ - arch_flush_lazy_mmu_mode() - -#define arch_kmap_local_post_unmap(vaddr) \ - do { \ - flush_tlb_one_kernel((vaddr)); \ - arch_flush_lazy_mmu_mode(); \ - } while (0) extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn, unsigned long end_pfn); -- Gitblit v1.6.2