instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_PGALLOC_H #define _ASM_POWERPC_BOOK3S_PGALLOC_H #include <linux/mm.h> extern void tlb_remove_table(struct mmu_gather *tlb, void *table); #ifdef CONFIG_PPC64 #include <asm/book3s/64/pgalloc.h> #else #include <asm/book3s/32/pgalloc.h> #endif #end...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/hugetlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_HUGETLB_H #define _ASM_POWERPC_BOOK3S_64_HUGETLB_H #include <asm/firmware.h> /* * For radix we want generic code to handle hugetlb. But then if we want * both hash and radix to be enabled together we need to workaround the * limitations. *...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/pkeys' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ #ifndef _ASM_POWERPC_BOOK3S_64_PKEYS_H #define _ASM_POWERPC_BOOK3S_64_PKEYS_H #include <asm/book3s/64/hash-pkey.h> static inline u64 vmflag_to_pte_pkey_bits(vm_flags_t vm_flags) { if (!mmu_has_feature(MMU_FTR_PKEY)) return 0x0UL; if (radix_enabled()) BUG(); return...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/radix' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_PGTABLE_RADIX_H #define _ASM_POWERPC_PGTABLE_RADIX_H #include <asm/asm-const.h> #ifndef __ASSEMBLER__ #include <asm/cmpxchg.h> #endif #ifdef CONFIG_PPC_64K_PAGES #include <asm/book3s/64/radix-64k.h> #else #include <asm/book3s/64/radix-4k.h> #endif #if...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/hash-64k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_HASH_64K_H #define _ASM_POWERPC_BOOK3S_64_HASH_64K_H #define H_PTE_INDEX_SIZE 8 // size: 8B << 8 = 2KB, maps 2^8 x 64KB = 16MB #define H_PMD_INDEX_SIZE 10 // size: 8B << 10 = 8KB, maps 2^10 x 16MB = 16GB #define H_PUD_INDEX_SIZE 10 // ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/slice' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H #define _ASM_POWERPC_BOOK3S_64_SLICE_H #ifndef __ASSEMBLER__ #ifdef CONFIG_PPC_64S_HASH_MMU #ifdef CONFIG_HUGETLB_PAGE #define HAVE_ARCH_HUGETLB_UNMAPPED_AREA #endif #define HAVE_ARCH_UNMAPPED_AREA #define HAVE_ARCH_UNMAPPED_AREA_TOPDO...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/radix-64k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_PGTABLE_RADIX_64K_H #define _ASM_POWERPC_PGTABLE_RADIX_64K_H /* * For 64K page size supported index is 13/9/9/5 */ #define RADIX_PTE_INDEX_SIZE 5 // size: 8B << 5 = 256B, maps 2^5 x 64K = 2MB #define RADIX_PMD_INDEX_SIZE 9 // size: 8B << 9...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/hash-4k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_HASH_4K_H #define _ASM_POWERPC_BOOK3S_64_HASH_4K_H #define H_PTE_INDEX_SIZE 9 // size: 8B << 9 = 4KB, maps: 2^9 x 4KB = 2MB #define H_PMD_INDEX_SIZE 7 // size: 8B << 7 = 1KB, maps: 2^7 x 2MB = 256MB #define H_PUD_INDEX_SIZE 9 // siz...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/mmu-hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_BOOK3S_64_MMU_HASH_H_ #define _ASM_POWERPC_BOOK3S_64_MMU_HASH_H_ /* * PowerPC64 memory management structures * * Dave Engebretsen & Mike Corrigan <{engebret|mikejc}@us.ibm.com> * PPC64 rework. */ #include <asm/page.h> #include <asm/bug.h>...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_HASH_H #define _ASM_POWERPC_BOOK3S_64_HASH_H #ifdef __KERNEL__ #include <asm/asm-const.h> #include <asm/book3s/64/slice.h> /* * Common bits between 4K and 64K pages in a linux-style PTE. * Additional bits may be defined in pgtable-hash64-*.h...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_TLBFLUSH_H #define _ASM_POWERPC_BOOK3S_64_TLBFLUSH_H #define MMU_NO_CONTEXT ~0UL #include <linux/mm_types.h> #include <linux/mmu_notifier.h> #include <asm/book3s/64/tlbflush-hash.h> #include <asm/book3s/64/tlbflush-radix.h> /* TLB flush actio...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/mmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_MMU_H_ #define _ASM_POWERPC_BOOK3S_64_MMU_H_ #include <asm/page.h> #ifndef __ASSEMBLER__ /* * Page size definition * * shift : is the "PAGE_SHIFT" value for that page size * sllp : is a bit mask with the value of SLB L || LP to be o...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/tlbflush-hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_TLBFLUSH_HASH_H #define _ASM_POWERPC_BOOK3S_64_TLBFLUSH_HASH_H /* * TLB flushing for 64-bit hash-MMU CPUs */ #include <linux/percpu.h> #include <asm/page.h> #define PPC64_TLB_BATCH_NR 192 struct ppc64_tlb_batch { unsigned long index; st...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/pgtable-64k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H #define _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H #ifndef __ASSEMBLER__ #ifdef CONFIG_HUGETLB_PAGE #endif /* CONFIG_HUGETLB_PAGE */ static inline int remap_4k_pfn(struct vm_area_struct *vma, unsigned long addr, unsigned lon...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/tlbflush-radix' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_TLBFLUSH_RADIX_H #define _ASM_POWERPC_TLBFLUSH_RADIX_H #include <asm/hvcall.h> #define RIC_FLUSH_TLB 0 #define RIC_FLUSH_PWC 1 #define RIC_FLUSH_ALL 2 struct vm_area_struct; struct mm_struct; struct mmu_gather; static inline u64 psize_to_rpti_pgsize(u...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/kexec' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_KEXEC_H_ #define _ASM_POWERPC_BOOK3S_64_KEXEC_H_ #include <asm/plpar_wrappers.h> #define reset_sprs reset_sprs static inline void reset_sprs(void) { if (cpu_has_feature(CPU_FTR_ARCH_206)) { mtspr(SPRN_AMR, 0); mtspr(SPRN_UAMOR, 0); } ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/kup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_KUP_H #define _ASM_POWERPC_BOOK3S_64_KUP_H #include <linux/const.h> #include <asm/reg.h> #define AMR_KUAP_BLOCK_READ UL(0x5455555555555555) #define AMR_KUAP_BLOCK_WRITE UL(0xa8aaaaaaaaaaaaaa) #define AMR_KUEP_BLOCKED UL(0x5455555555555555) #de...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_PGTABLE_H_ #define _ASM_POWERPC_BOOK3S_64_PGTABLE_H_ #include <asm-generic/pgtable-nop4d.h> #ifndef __ASSEMBLER__ #include <linux/mmdebug.h> #include <linux/bug.h> #include <linux/sizes.h> #endif /* * Common bits between hash and Radix page ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_BOOK3S_64_PGALLOC_H #define _ASM_POWERPC_BOOK3S_64_PGALLOC_H /* */ #include <linux/slab.h> #include <linux/cpumask.h> #include <linux/kmemleak.h> #include <linux/percpu.h> struct vmemmap_backing { struct vmemmap_backing *list; unsigned long ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/radix-4k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_PGTABLE_RADIX_4K_H #define _ASM_POWERPC_PGTABLE_RADIX_4K_H /* * For 4K page size supported index is 13/9/9/9 */ #define RADIX_PTE_INDEX_SIZE 9 // size: 8B << 9 = 4KB, maps 2^9 x 4K = 2MB #define RADIX_PMD_INDEX_SIZE 9 // size: 8B << 9 = ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/64/hash-pkey' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_HASH_PKEY_H #define _ASM_POWERPC_BOOK3S_64_HASH_PKEY_H /* We use key 3 for KERNEL */ #define HASH_DEFAULT_KERNEL_KEY (HPTE_R_KEY_BIT0 | HPTE_R_KEY_BIT1) static inline u64 hash__vmflag_to_pte_pkey_bits(u64 vm_flags) { return (((vm_flags & VM_...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/32/mmu-hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_32_MMU_HASH_H_ #define _ASM_POWERPC_BOOK3S_32_MMU_HASH_H_ /* * 32-bit hash table MMU support */ /* * BATs */ /* Block size masks */ #define BL_128K 0x000 #define BL_256K 0x001 #define BL_512K 0x003 #define BL_1M 0x007 #define BL_2M 0x00F...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/32/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H #define _ASM_POWERPC_BOOK3S_32_TLBFLUSH_H #include <linux/build_bug.h> #define MMU_NO_CONTEXT (0) /* * TLB flushing for "classic" hash-MMU 32-bit CPUs, 6xx, 7xx, 7xxx */ void hash__flush_tlb_mm(struct mm_struct *mm); void has...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/32/kup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_32_KUP_H #define _ASM_POWERPC_BOOK3S_32_KUP_H #include <asm/bug.h> #include <asm/book3s/32/mmu-hash.h> #include <asm/mmu.h> #include <asm/synch.h> #ifndef __ASSEMBLER__ #ifdef CONFIG_PPC_KUAP #include <linux/sched.h> #define KUAP_NONE (~0UL) ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/32/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_32_PGTABLE_H #define _ASM_POWERPC_BOOK3S_32_PGTABLE_H #include <asm-generic/pgtable-nopmd.h> /* * The "classic" 32-bit implementation of the PowerPC MMU uses a hash * table containing PTEs, together with a set of 16 segment registers, * to def...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/book3s/32/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_32_PGALLOC_H #define _ASM_POWERPC_BOOK3S_32_PGALLOC_H #include <linux/threads.h> #include <linux/slab.h> static inline pgd_t *pgd_alloc(struct mm_struct *mm) { pgd_t *pgd = kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), pgtable_gfp_flags(...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/kup-booke' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_KUP_BOOKE_H_ #define _ASM_POWERPC_KUP_BOOKE_H_ #include <asm/bug.h> #include <asm/mmu.h> #ifdef CONFIG_PPC_KUAP #ifdef __ASSEMBLER__ .macro kuap_check_amr gpr1, gpr2 .endm #else #include <linux/sched.h> #include <asm/reg.h> static __always_inline ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/pte-e500' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_PTE_E500_H #define _ASM_POWERPC_NOHASH_PTE_E500_H #ifdef __KERNEL__ /* PTE bit definitions for processors compliant to the Book3E * architecture 2.06 or later. The position of the PTE bits * matches the HW definition of the optional Embedded Pag...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/mmu-e500' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_MMU_BOOK3E_H_ #define _ASM_POWERPC_MMU_BOOK3E_H_ /* * Freescale Book-E/Book-3e (ISA 2.06+) MMU support */ /* Book-3e defined page sizes */ #define BOOK3E_PAGESZ_1K 0 #define BOOK3E_PAGESZ_2K 1 #define BOOK3E_PAGESZ_4K 2 #define BOOK3E_PAGESZ_8K 3 #defi...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_TLBFLUSH_H #define _ASM_POWERPC_NOHASH_TLBFLUSH_H /* * TLB flushing: * * - flush_tlb_mm(mm) flushes the specified mm context TLB's * - flush_tlb_page(vma, vmaddr) flushes one page * - local_flush_tlb_mm(mm, full) flushes the specified mm c...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/mmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_MMU_H_ #define _ASM_POWERPC_NOHASH_MMU_H_ #if defined(CONFIG_44x) /* 44x-style software loaded TLB */ #include <asm/nohash/32/mmu-44x.h> #elif defined(CONFIG_PPC_E500) /* Freescale Book-E software loaded TLB or Book-3e (ISA 2.06+) MMU */ #include ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_PGTABLE_H #define _ASM_POWERPC_NOHASH_PGTABLE_H #ifndef __ASSEMBLER__ static inline pte_basic_t pte_update(struct mm_struct *mm, unsigned long addr, pte_t *p, unsigned long clr, unsigned long set, int huge); #endif #if defined(CONFIG_PPC...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_PGALLOC_H #define _ASM_POWERPC_NOHASH_PGALLOC_H #include <linux/mm.h> #include <linux/slab.h> extern void tlb_remove_table(struct mmu_gather *tlb, void *table); #ifdef CONFIG_PPC64 extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned lo...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/hugetlb-e500' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_HUGETLB_E500_H #define _ASM_POWERPC_NOHASH_HUGETLB_E500_H void flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr); static inline int check_and_get_huge_psize(int shift) { if (shift & 1) /* Not a power of 4 */ return -EINVAL; ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/64/pgtable-4k' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_64_PGTABLE_4K_H #define _ASM_POWERPC_NOHASH_64_PGTABLE_4K_H #include <asm-generic/pgtable-nop4d.h> /* * Entries per page directory level. The PTE level must use a 64b record * for each page table entry. The PMD and PGD level use a 32b record ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/64/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_64_PGTABLE_H #define _ASM_POWERPC_NOHASH_64_PGTABLE_H /* * This file contains the functions and defines necessary to modify and use * the ppc64 non-hashed page table. */ #include <linux/sizes.h> #include <asm/nohash/64/pgtable-4k.h> #include <...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/64/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_PGALLOC_64_H #define _ASM_POWERPC_PGALLOC_64_H /* */ #include <linux/slab.h> #include <linux/cpumask.h> #include <linux/percpu.h> struct vmemmap_backing { struct vmemmap_backing *list; unsigned long phys; unsigned long virt_addr; }; extern ...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/mmu-44x' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_MMU_44X_H_ #define _ASM_POWERPC_MMU_44X_H_ /* * PPC440 support */ #include <asm/asm-const.h> #define PPC44x_MMUCR_TID 0x000000ff #define PPC44x_MMUCR_STS 0x00010000 #define PPC44x_TLB_PAGEID 0 #define PPC44x_TLB_XLAT 1 #define PPC44x_TLB_ATTRIB 2 /...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/pte-8xx' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_32_PTE_8xx_H #define _ASM_POWERPC_NOHASH_32_PTE_8xx_H #ifdef __KERNEL__ /* * The PowerPC MPC8xx uses a TLB with hardware assisted, software tablewalk. * We also use the two level tables, but we can put the real bits in them * needed for the TLB...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/hugetlb-8xx' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_32_HUGETLB_8XX_H #define _ASM_POWERPC_NOHASH_32_HUGETLB_8XX_H #define PAGE_SHIFT_8M 23 static inline void flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { flush_tlb_page(vma, vmaddr); } static inline int check_a...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/pte-44x' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_32_PTE_44x_H #define _ASM_POWERPC_NOHASH_32_PTE_44x_H #ifdef __KERNEL__ /* * Definitions for PPC440 * * Because of the 3 word TLB entries to support 36-bit addressing, * the attribute are difficult to map in such a fashion that they * are eas...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/kup-8xx' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_KUP_8XX_H_ #define _ASM_POWERPC_KUP_8XX_H_ #include <asm/bug.h> #include <asm/mmu.h> #ifdef CONFIG_PPC_KUAP #ifndef __ASSEMBLER__ #include <asm/reg.h> static __always_inline void __kuap_save_and_lock(struct pt_regs *regs) { regs->kuap = mfspr(SPRN_M...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/mmu-8xx' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_MMU_8XX_H_ #define _ASM_POWERPC_MMU_8XX_H_ /* * PPC8xx support */ /* Control/status registers for the MPC8xx. * A write operation to these registers causes serialized access. * During software tablewalk, the registers used perform mask/shift-add * o...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_32_PGTABLE_H #define _ASM_POWERPC_NOHASH_32_PGTABLE_H #include <asm-generic/pgtable-nopmd.h> #ifndef __ASSEMBLER__ #include <linux/sched.h> #include <linux/threads.h> #include <asm/mmu.h> /* For sub-arch specific PPC_PIN_SIZE */ #endif /* __AS...
Linux işletim sistemi çekirdeği için 'arch/powerpc/include/asm/nohash/32/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_PGALLOC_32_H #define _ASM_POWERPC_PGALLOC_32_H #include <linux/threads.h> #include <linux/slab.h> /* * We don't have any real pmd's, and this code never triggers because * the pgd will always be present.. */ /* #define pmd_alloc_one(mm,address) ...
Linux kernel'inin 'arch/powerpc/mm/pgtable_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines setting up the linux page tables. * -- paulus * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Co...
Linux kernel'inin 'arch/powerpc/mm/mem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * PPC44x/36-bit changes by...
Linux kernel'inin 'arch/powerpc/mm/drmem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Dynamic reconfiguration memory support * * Copyright 2017 IBM Corporation */ #define pr_fmt(fmt) "drmem: " fmt #include <linux/kernel.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <linux/memblock.h> #include <linux/slab.h> #include <asm/drmem.h>...
Linux kernel'inin 'arch/powerpc/mm/numa' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * pSeries NUMA support * * Copyright (C) 2002 Anton Blanchard <anton@au.ibm.com>, IBM */ #define pr_fmt(fmt) "numa: " fmt #include <linux/threads.h> #include <linux/memblock.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/mmzone.h> #include <lin...
Linux kernel'inin 'arch/powerpc/mm/init-common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * * Derived from "arch/i3...
Linux kernel'inin 'arch/powerpc/mm/pgtable_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains pgtable related functions for 64-bit machines. * * Derived from arch/ppc64/mm/init.c * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@samba.org) * and Cort Dougan (PReP)...
Linux kernel'inin 'arch/powerpc/mm/fault' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/i386/mm/fault.c" * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * * Modified by Cort Dougan and Paul Mackerras. * * Modified for PPC64 by Dave...
Linux kernel'inin 'arch/powerpc/mm/mmu_context' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Common implementation of switch_mm_irqs_off * * Copyright IBM Corp. 2017 */ #include <linux/mm.h> #include <linux/cpu.h> #include <linux/sched/mm.h> #include <asm/mmu_context.h> #include <asm/pgalloc.h> #if defined(CONFIG_PPC32) static inline void switch_m...
Linux kernel'inin 'arch/powerpc/mm/ioremap_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include <mm/mmu_decl.h> void __iomem *ioremap_wt(phys_addr_t addr, unsigned long size) { pgprot_t prot = pgprot_cached_wthru(PAGE_KERNEL); return __ioremap_caller(addr, size, prot, __builtin...
Linux kernel'inin 'arch/powerpc/mm/pgtable-frag' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Handling Page Tables through page fragments * */ #include <linux/kernel.h> #include <linux/gfp.h> #include <linux/mm.h> #include <linux/percpu.h> #include <linux/hardirq.h> #include <linux/hugetlb.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> #include <asm/tlb...
Linux kernel'inin 'arch/powerpc/mm/ioremap_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/vmalloc.h> void __iomem *__ioremap_caller(phys_addr_t addr, unsigned long size, pgprot_t prot, void *caller) { phys_addr_t paligned, offset; void __iomem *ret; int err; /* We don't support th...
Linux kernel'inin 'arch/powerpc/mm/pageattr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * MMU-generic set_memory implementation for powerpc * * Copyright 2019-2021, IBM Corporation. */ #include <linux/mm.h> #include <linux/vmalloc.h> #include <linux/set_memory.h> #include <asm/mmu.h> #include <asm/page.h> #include <asm/pgtable.h> #include <mm/mmu_decl.h>...
Linux kernel'inin 'arch/powerpc/mm/init_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * * Derived from "arch/i3...
Linux işletim sistemi çekirdeği için 'arch/powerpc/mm/mmu_decl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Declarations of procedures and variables shared between files * in arch/ppc/mm/. * * Derived from arch/ppc/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * a...
Linux kernel'inin 'arch/powerpc/mm/dma-noncoherent' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * PowerPC version derived from arch/arm/mm/consistent.c * Copyright (C) 2001 Dan Malek (dmalek@jlc.net) * * Copyright (C) 2000 Russell King */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/highmem.h> #include <linu...
Linux kernel'inin 'arch/powerpc/mm/cacheflush' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/highmem.h> #include <linux/kprobes.h> /** * flush_coherent_icache() - if a CPU has a coherent icache, flush it * Return true if the cache was flushed, false otherwise */ static inline bool flush_coherent_icache(void) { /* * For a snooping icache,...
Linux kernel'inin 'arch/powerpc/mm/init_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) * and Cort Dougan (PReP) (cort@cs.nmt.edu) * Copyright (C) 1996 Paul Mackerras * PPC44x/36-bit changes by...
Linux kernel'inin 'arch/powerpc/mm/copro_fault' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * CoProcessor (SPU/AFU) mm fault handler * * (C) Copyright IBM Deutschland Entwicklung GmbH 2007 * * Author: Arnd Bergmann <arndb@de.ibm.com> * Author: Jeremy Kerr <jk@ozlabs.org> */ #include <linux/sched.h> #include <linux/mm.h> #include <linux/export.h> #inc...
Linux kernel'inin 'arch/powerpc/mm/hugetlbpage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * PPC Huge TLB Page Support for Kernel. * * Copyright (C) 2003 David Gibson, IBM Corporation. * Copyright (C) 2011 Becky Bruce, Freescale Semiconductor * * Based on the IA-32 version: * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com> */ #include <linux/mm.h> #include <linux/io.h> #include <linux/...
Linux kernel'inin 'arch/powerpc/mm/pgtable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains common routines for dealing with free of page tables * Along with common page table handling code * * Derived from arch/powerpc/mm/tlb_64.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras ...
Linux kernel'inin 'arch/powerpc/mm/maccess' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/uaccess.h> #include <linux/kernel.h> #include <asm/disassemble.h> #include <asm/inst.h> #include <asm/ppc-opcode.h> bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size) { return is_kernel_addr((unsigned long)unsafe_src); } ```
Linux kernel'inin 'arch/powerpc/mm/ioremap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/io.h> #include <linux/slab.h> #include <linux/mmzone.h> #include <linux/vmalloc.h> unsigned long ioremap_bot; EXPORT_SYMBOL(ioremap_bot); void __iomem *ioremap(phys_addr_t addr, unsigned long size) { pgprot_t prot = pgprot_noncached(PAGE_KERNEL); vo...
Linux işletim sistemi çekirdeği için 'arch/powerpc/mm/ptdump/ptdump' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/types.h> #include <linux/seq_file.h> struct flag_info { u64 mask; u64 val; const char *set; const char *clear; bool is_val; int shift; }; struct ptdump_pg_level { const struct flag_info *flag; char name[4]; size_t num; u64 mask; }; extern stru...
Linux kernel'inin 'arch/powerpc/mm/ptdump/segment_regs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018, Christophe Leroy CS S.I. * <christophe.leroy@c-s.fr> * * This dumps the content of Segment Registers */ #include <linux/debugfs.h> static void seg_show(struct seq_file *m, int i) { u32 val = mfsr(i << 28); seq_printf(m, "0x%01x0000000-0x%01xffffff...
Linux kernel'inin 'arch/powerpc/mm/ptdump/bats' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2018, Christophe Leroy CS S.I. * <christophe.leroy@c-s.fr> * * This dumps the content of BATS */ #include <linux/pgtable.h> #include <linux/debugfs.h> #include <asm/cpu_has_feature.h> #include "ptdump.h" static void bat_show_603(struct seq_file *m, int id...
Linux kernel'inin 'arch/powerpc/mm/ptdump/hashpagetable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2016, Rashmica Gupta, IBM Corp. * * This traverses the kernel virtual memory and dumps the pages that are in * the hash pagetable, along with their flags to * /sys/kernel/debug/kernel_hash_pagetable. * * If radix is enabled then there is no hash page t...
Linux kernel'inin 'arch/powerpc/mm/ptdump/book3s64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { .mask = _PAGE_PRIVILEGED, .val = 0, .set = "user", ...
Linux kernel'inin 'arch/powerpc/mm/ptdump/shared' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { .mask = _PAGE_READ, .val = 0, .set = " ", .clear = ...
Linux kernel'inin 'arch/powerpc/mm/ptdump/8xx' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * From split of dump_linuxpagetables.c * Copyright 2016, Rashmica Gupta, IBM Corp. * */ #include <linux/kernel.h> #include <linux/pgtable.h> #include "ptdump.h" static const struct flag_info flag_array[] = { { #ifdef CONFIG_PPC_16K_PAGES .mask = _PAGE_HUGE, .val = ...
Linux kernel'inin 'arch/powerpc/mm/ptdump/ptdump' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2016, Rashmica Gupta, IBM Corp. * * This traverses the kernel pagetables and dumps the * information about the used sections of memory to * /sys/kernel/debug/kernel_pagetables. * * Derived from the arm64 implementation: * Copyright (c) 2014, The Linux...
Linux kernel'inin 'arch/powerpc/mm/book3s64/radix_tlb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * TLB flush routines for radix kernels. * * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/memblock.h> #include <linux/mmu_context.h> #include <linux/sched/mm.h> #include <linux/debugfs...
Linux kernel'inin 'arch/powerpc/mm/book3s64/radix_hugetlbpage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/security.h> #include <asm/cacheflush.h> #include <asm/machdep.h> #include <asm/mman.h> #include <asm/tlb.h> void radix__flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { int psize; struct hs...
Linux kernel'inin 'arch/powerpc/mm/book3s64/trace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This file is for defining trace points and trace related helpers. */ #ifdef CONFIG_TRANSPARENT_HUGEPAGE #include <trace/events/thp.h> #endif ```
Linux işletim sistemi çekirdeği için 'arch/powerpc/mm/book3s64/internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H #define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H #include <linux/jump_label.h> extern bool stress_slb_enabled; DECLARE_STATIC_KEY_FALSE(stress_slb_key); static inline bool stress_slb(void) { return static_branch_unlikely(&s...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_tlb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This file contains the routines for flushing entries from the * TLB and MMU hash table. * * Derived from arch/ppc64/mm/init.c: * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_pgtable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2005, Paul Mackerras, IBM Corporation. * Copyright 2009, Benjamin Herrenschmidt, IBM Corporation. * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/mm.h> #include <linux/...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_4k' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright IBM Corporation, 2015 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_utils' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC64 port by Mike Corrigan and Dave Engebretsen * {mikejc|engebret}@us.ibm.com * * Copyright (c) 2000 Mike Corrigan <mikejc@us.ibm.com> * * SMP scalability work: * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM * * Module name: ...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_hugepage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright IBM Corporation, 2013 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2.1 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program ...
Linux kernel'inin 'arch/powerpc/mm/book3s64/mmu_context' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * MMU context allocation for 64-bit kernels. * * Copyright (C) 2004 Anton Blanchard, IBM Corp. <anton@samba.org> */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/types.h> #include <linux/m...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_native' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * native hashtable management. * * SMP scalability work: * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM */ #undef DEBUG_LOW #include <linux/spinlock.h> #include <linux/bitops.h> #include <linux/of.h> #include <linux/processor.h> #include <linu...
Linux kernel'inin 'arch/powerpc/mm/book3s64/pkeys' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * PowerPC Memory Protection Keys management * * Copyright 2017, Ram Pai, IBM Corporation. */ #include <asm/mman.h> #include <asm/mmu_context.h> #include <asm/mmu.h> #include <asm/setup.h> #include <asm/smp.h> #include <asm/firmware.h> #include <linux/pkeys.h> #include ...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hash_64k' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright IBM Corporation, 2015 * Author Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is...
Linux kernel'inin 'arch/powerpc/mm/book3s64/iommu_api' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * IOMMU helpers in MMU context. * * Copyright (C) 2015 IBM Corp. <aik@ozlabs.ru> */ #include <linux/sched/signal.h> #include <linux/slab.h> #include <linux/rculist.h> #include <linux/vmalloc.h> #include <linux/mutex.h> #include <linux/migrate.h> #include <linu...
Linux kernel'inin 'arch/powerpc/mm/book3s64/subpage_prot' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2007-2008 Paul Mackerras, IBM Corp. */ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/gfp.h> #include <linux/types.h> #include <linux/pagewalk.h> #include <linux/hugetlb.h> #include <linux/syscalls.h> #include <linux/pgtable.h> #in...
Linux kernel'inin 'arch/powerpc/mm/book3s64/slb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC64 SLB support. * * Copyright (C) 2004 David Gibson <dwg@au.ibm.com>, IBM * Based on earlier code written by: * Dave Engebretsen and Mike Corrigan {engebret|mikejc}@us.ibm.com * Copyright (c) 2001 Dave Engebretsen * Copyright (C) 2002 Anton Blancha...
Linux kernel'inin 'arch/powerpc/mm/book3s64/radix_pgtable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Page table handling routines for radix page table. * * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #define pr_fmt(fmt) "radix-mmu: " fmt #include <linux/io.h> #include <linux/kernel.h> #include <linux/sched/mm.h> #include <linux/memblock.h> #in...
Linux kernel'inin 'arch/powerpc/mm/book3s64/hugetlbpage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * PPC64 Huge TLB Page Support for hash based MMUs (POWER4 and later) * * Copyright (C) 2003 David Gibson, IBM Corporation. * * Based on the IA-32 version: * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com> */ #include <linux/mm.h> #include <linux/hugetlb.h> #incl...
Linux kernel'inin 'arch/powerpc/mm/book3s64/pgtable' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation. */ #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/memblock.h> #include <linux/memremap.h> #include <linux/pkeys.h> #include <linux/debugfs.h> #include <linux/proc_fs.h> #include <linux...
Linux kernel'inin 'arch/powerpc/mm/book3s64/slice' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * address space "slices" (meta-segments) support * * Copyright (C) 2007 Benjamin Herrenschmidt, IBM Corporation. * * Based on hugetlb implementation * * Copyright (C) 2003 David Gibson, IBM Corporation. */ #undef DEBUG #include <linux/kernel.h> #include <li...
Linux kernel'inin 'arch/powerpc/mm/kasan/book3s_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/memblock.h> #include <mm/mmu_decl.h> int __init kasan_init_region(void *start, size_t size) { unsigned long k_start = (unsigned long)kasan_mem_to_shadow(start); unsigned long k_end = (unsigned long)ka...
Linux kernel'inin 'arch/powerpc/mm/kasan/init_book3e_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KASAN for 64-bit Book3e powerpc * * Copyright 2022, Christophe Leroy, CS GROUP France */ #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/printk.h> #include <linux/memblock.h> #include <linux/set_memory.h> #include <asm/pgalloc.h> static inl...
Linux kernel'inin 'arch/powerpc/mm/kasan/init_book3s_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KASAN for 64-bit Book3S powerpc * * Copyright 2019-2022, Daniel Axtens, IBM Corporation. */ /* * ppc64 turns on virtual memory late in boot, after calling into generic code * like the device-tree parser, so it uses this in conjunction with a hook in * outline mode t...
Linux kernel'inin 'arch/powerpc/mm/kasan/init_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/printk.h> #include <linux/memblock.h> #include <linux/sched/task.h> #include <asm/pgalloc.h> #include <asm/text-patching.h> #include <mm/mmu_decl.h> static pgprot_t __init kasan_prot_ro(void) { if (ear...
Linux kernel'inin 'arch/powerpc/mm/kasan/8xx' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define DISABLE_BRANCH_PROFILING #include <linux/kasan.h> #include <linux/memblock.h> #include <linux/hugetlb.h> #include <asm/pgalloc.h> static int __init kasan_init_shadow_8M(unsigned long k_start, unsigned long k_end, void *block) { pmd_t *pmd = pmd_off_k(k_start); unsi...