instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'arch/loongarch/kvm/intc/eiointc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #include <asm/kvm_eiointc.h> #include <asm/kvm_vcpu.h> #include <linux/count_zeros.h> static void eiointc_set_sw_coreisr(struct loongarch_eiointc *s) { int ipnum, cpu, cpuid, irq; struct kvm_vcpu *vcpu; f...
Linux kernel'inin 'arch/loongarch/kvm/intc/dmsintc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2025 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/kvm_csr.h> #include <asm/kvm_dmsintc.h> #include <asm/kvm_vcpu.h> void dmsintc_inject_irq(struct kvm_vcpu *vcpu) { unsigned int i; unsigned long vector[4], old; st...
Linux kernel'inin 'arch/loongarch/kvm/intc/ipi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/kvm_ipi.h> #include <asm/kvm_vcpu.h> static void ipi_set(struct kvm_vcpu *vcpu, uint32_t data) { uint32_t status; struct kvm_interrupt irq; spin_lock(&vcpu->arch....
Linux kernel'inin 'arch/loongarch/kvm/intc/pch_pic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #include <asm/kvm_dmsintc.h> #include <asm/kvm_eiointc.h> #include <asm/kvm_pch_pic.h> #include <asm/kvm_vcpu.h> #include <linux/count_zeros.h> /* update the isr according to irq level and route irq to eioint...
Linux kernel'inde 'arch/loongarch/vdso/vdso' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from RISC-V: * Copyright (C) 2014 Regents of the University of California */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/page.h> __PAGE_ALIGNED_DATA .gl...
Linux kernel'inde 'arch/loongarch/vdso/sigreturn' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <asm/vdso/vdso.h> #include <linux/linkage.h> #include <uapi/asm/unistd.h> #include <asm/regdef.h> #include <asm/asm.h> #include <asm...
Linux kernel'inin 'arch/loongarch/vdso/vgetrandom' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2024 Xi Ruoyao <xry111@xry111.site>. All Rights Reserved. */ #include <linux/types.h> ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len) { return __cvdso_getrandom(buffer, len, flags, opaque_s...
Linux kernel'inin 'arch/loongarch/vdso/vgettimeofday' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * LoongArch userspace implementations of gettimeofday() and similar. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <linux/types.h> #include <vdso/gettime.h> int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)...
Linux kernel'inde 'arch/loongarch/vdso/vgetrandom-chacha' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Xi Ruoyao <xry111@xry111.site>. All Rights Reserved. */ #include <asm/asm.h> #include <asm/regdef.h> #include <linux/linkage.h> .text .macro OP_4REG op d0 d1 d2 d3 s0 s1 s2 s3 \op \d0, \d0, \s0 \op \d1, \d1, \s1 \op \d2, \d2, \s2 \op \d3, ...
Linux kernel'inin 'arch/loongarch/vdso/vgetcpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Fast user context implementation of getcpu() */ #include <asm/vdso.h> static __always_inline int read_cpu_id(void) { int cpu_id; #ifdef CONFIG_64BIT __asm__ __volatile__( " rdtime.d $zero, %0\n" : "=r" (cpu_id) : : "memory"); #else __asm__ __volatile__( " ...
Linux kernel'inde 'arch/loongarch/vdso/vdso.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <asm/page.h> #include <generated/asm-offsets.h> #include <vdso/datapage.h> OUTPUT_ARCH(loongarch) SECTIONS { VDSO_VVAR_SYMS . = SIZEO...
Linux kernel'inde 'arch/loongarch/vdso/elf' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <asm/vdso/vdso.h> #include <linux/elfnote.h> #include <linux/version.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE ELFNO...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/ptrace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Author: Hanlu Li <lihanlu@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _UAPI_ASM_PTRACE_H #define _UAPI_ASM_PTRACE_H #include <linux/types.h> /* ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/reg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Various register offset definitions for debuggers, core file * examiners and whatnot. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __UAPI_ASM_LOONGARCH_REG_H #define __UAPI_ASM_LOONGARCH_REG_H #define LOONG...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/kvm_para' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_KVM_PARA_H #define _UAPI_ASM_KVM_PARA_H #include <linux/types.h> /* * CPUCFG index area: 0x40000000 -- 0x400000ff * SW emulation for KVM hypervirsor */ #define CPUCFG_KVM_BASE 0x40000000 #define CPUCFG_KVM_SIZE 0x100 #define ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/signal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _UAPI_ASM_SIGNAL_H #define _UAPI_ASM_SIGNAL_H #define MINSIGSTKSZ 4096 #define SIGSTKSZ 16384 #include <asm-generic/signal.h> #endif ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/kvm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #ifndef __UAPI_ASM_LOONGARCH_KVM_H #define __UAPI_ASM_LOONGARCH_KVM_H #include <linux/types.h> #define __KVM_HAVE_IRQ_LINE /* * KVM LoongArch specific structures and definit...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/bpf_perf_event' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_BPF_PERF_EVENT_H__ #define _UAPI__ASM_BPF_PERF_EVENT_H__ #include <linux/ptrace.h> typedef struct user_pt_regs bpf_user_pt_regs_t; #endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/perf_regs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_LOONGARCH_PERF_REGS_H #define _ASM_LOONGARCH_PERF_REGS_H enum perf_event_loongarch_regs { PERF_REG_LOONGARCH_PC, PERF_REG_LOONGARCH_R1, PERF_REG_LOONGARCH_R2, PERF_REG_LOONGARCH_R3, PERF_REG_LOONGARCH_R4, PERF_REG_LOONGARCH_R5, PER...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/setup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_LOONGARCH_SETUP_H #define _UAPI_ASM_LOONGARCH_SETUP_H #define COMMAND_LINE_SIZE 4096 #endif /* _UAPI_ASM_LOONGARCH_SETUP_H */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/sigcontext' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Author: Hanlu Li <lihanlu@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _UAPI_ASM_SIGCONTEXT_H #define _UAPI_ASM_SIGCONTEXT_H #include <linux/types...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/ucontext' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LOONGARCH_UAPI_ASM_UCONTEXT_H #define __LOONGARCH_UAPI_ASM_UCONTEXT_H /** * struct ucontext - user context structure * @uc_flags: * @uc_link: * @uc_stack: * @uc_mcontext: holds basic processor state * @uc_sigmask: * @uc_extcontext: ho...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/hwcap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_HWCAP_H #define _UAPI_ASM_HWCAP_H /* HWCAP flags */ #define HWCAP_LOONGARCH_CPUCFG (1 << 0) #define HWCAP_LOONGARCH_LAM (1 << 1) #define HWCAP_LOONGARCH_UAL (1 << 2) #define HWCAP_LOONGARCH_FPU (1 << 3) #define HWCAP_LOONGARCH_LS...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/auxvec' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Author: Hanlu Li <lihanlu@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_AUXVEC_H #define __ASM_AUXVEC_H /* Location of VDSO image. */ #defin...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/break' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __UAPI_ASM_BREAK_H #define __UAPI_ASM_BREAK_H #define BRK_DEFAULT 0 /* Used as default */ #define BRK_BUG 1 /* Used by BUG() */ #define BRK_KDB 2 /* Used in KDB_ENT...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/unistd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #include <asm/bitsperlong.h> #if __BITS_PER_LONG == 32 #include <asm/unistd_32.h> #else #include <asm/unistd_64.h> #endif ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/uapi/asm/byteorder' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Author: Hanlu Li <lihanlu@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BYTEORDER_H #define _ASM_BYTEORDER_H #include <linux/byteorder/little_...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/alternative' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALTERNATIVE_H #define _ASM_ALTERNATIVE_H #ifndef __ASSEMBLER__ #include <linux/types.h> #include <linux/stddef.h> #include <linux/stringify.h> #include <asm/asm.h> struct alt_instr { s32 instr_offset; /* offset to original instruction */ s32 replace_offset; ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kfence' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * KFENCE support for LoongArch. * * Author: Enze Li <lienze@kylinos.cn> * Copyright (C) 2022-2023 KylinSoft Corporation. */ #ifndef _ASM_LOONGARCH_KFENCE_H #define _ASM_LOONGARCH_KFENCE_H #include <linux/kfence.h> #include <linux/vmalloc.h> #include <asm/pgtable.h> ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/ptrace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_PTRACE_H #define _ASM_PTRACE_H #include <asm/page.h> #include <asm/irqflags.h> #include <asm/thread_info.h> #include <uapi/asm/ptrace.h> /* * This struct defines the way the registers ar...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/hugetlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_HUGETLB_H #define __ASM_HUGETLB_H #include <asm/page.h> uint64_t pmd_to_entrylo(unsigned long pmd_val); #define __HAVE_ARCH_HUGE_PTE_CLEAR static inline void huge_pte_clear(struct mm_s...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/cpu-features' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 2003, 2004 Ralf Baechle * Copyright (C) 2004 Maciej W. Rozycki */ #ifndef __ASM_CPU_FEATURES_H #define __ASM_CPU_FEATURES_H #include <asm/cpu.h> #include <asm/c...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/topology' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_TOPOLOGY_H #define __ASM_TOPOLOGY_H #include <linux/smp.h> #ifdef CONFIG_NUMA #include <asm/numa.h> extern cpumask_t cpus_on_node[]; #define cpumask_of_node(node) ((node) == NUMA_NO_N...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/cacheops' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Cache operations for the cache instruction. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CACHEOPS_H #define __ASM_CACHEOPS_H /* * Most cache ops are split into a 3 bit field identifying the cache, and a 2 * bit field identif...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kvm_para' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_KVM_PARA_H #define _ASM_LOONGARCH_KVM_PARA_H #include <uapi/asm/kvm_para.h> /* * Hypercall code field */ #define HYPERVISOR_KVM 1 #define HYPERVISOR_VENDOR_SHIFT 8 #define HYPERCALL_ENCODE(vendor, code) ((vendor << HYPERVISOR_VENDOR_SHIFT) + code...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/elf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ELF_H #define _ASM_ELF_H #include <linux/auxvec.h> #include <linux/fs.h> #include <uapi/linux/elf.h> #include <asm/current.h> #include <asm/vdso.h> /* The ABI of a file. */ #define EF_LO...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/asmmacro' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ASMMACRO_H #define _ASM_ASMMACRO_H #include <linux/sizes.h> #include <asm/asm-offsets.h> #include <asm/regdef.h> #include <asm/fpregdef.h> #include <asm/loongarch.h> #ifdef CONFIG_64BIT #...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/dma' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_DMA_H #define __ASM_DMA_H #define MAX_DMA_ADDRESS PAGE_OFFSET #define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT)) #endif ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/orc_lookup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ORC_LOOKUP_H #define _ORC_LOOKUP_H /* * This is a lookup table for speeding up access to the .orc_unwind table. * Given an input address offset, the corresponding lookup table entry * specifies a subset of the .orc_unwind table to search. * * Each bloc...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/bootinfo' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BOOTINFO_H #define _ASM_BOOTINFO_H #include <linux/types.h> #include <asm/setup.h> const char *get_system_type(void); extern void init_environ(void); extern void memblock_init(void); ext...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kvm_vcpu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #ifndef __ASM_LOONGARCH_KVM_VCPU_H__ #define __ASM_LOONGARCH_KVM_VCPU_H__ #include <linux/kvm_host.h> #include <asm/loongarch.h> /* Controlled by 0x5 guest estat */ #define CPU_SIP0 (_ULCAST_(1)) #...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/qspinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_QSPINLOCK_H #define _ASM_LOONGARCH_QSPINLOCK_H #include <asm/kvm_para.h> #include <asm/paravirt.h> #ifdef CONFIG_PARAVIRT #define virt_spin_lock virt_spin_lock static inline bool virt_spin_lock(struct qspinlock *lock) { int val; if (!static_branc...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kgdb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2023 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_KGDB_H #define _ASM_LOONGARCH_KGDB_H #define GDB_SIZEOF_REG sizeof(u64) /* gdb remote procotol expects the following register layout. */ /* * General purpose registers: * r0...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/orc_header' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ORC_HEADER_H #define _ORC_HEADER_H #include <linux/types.h> #include <linux/compiler.h> #include <asm/orc_hash.h> /* * The header is currently a 20-byte hash of the ORC entry definition; see * scripts/orc_hash.sh. */ #define ORC_HEADER \ __used __...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/bitrev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __LOONGARCH_ASM_BITREV_H__ #define __LOONGARCH_ASM_BITREV_H__ #include <linux/swab.h> static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x) { u32 ret; asm("bitrev.w %0, %1" ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kvm_dmsintc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2025 Loongson Technology Corporation Limited */ #ifndef __ASM_KVM_DMSINTC_H #define __ASM_KVM_DMSINTC_H #include <linux/kvm_types.h> struct loongarch_dmsintc { struct kvm *kvm; uint64_t msg_addr_base; uint64_t msg_addr_size; uint32_t cpu_mask; }; ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/efi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_EFI_H #define _ASM_LOONGARCH_EFI_H #include <linux/efi.h> void __init efi_init(void); void __init efi_runtime_init(void); void __init *efi_fdt_pointer(void); void efifb_setup_fr...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/fpu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FPU_H #define _ASM_FPU_H #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/ptrace.h> #include <linux/thread_info....
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/seccomp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_SECCOMP_H #define _ASM_SECCOMP_H #include <asm/unistd.h> #include <asm-generic/seccomp.h> #ifdef CONFIG_32BIT # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32 # define SECCOMP_ARCH_NATIVE_NR NR_syscalls # define SECCOMP_ARCH_NATIVE_NAME "loongarch32" #el...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/crash_reserve' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _LOONGARCH_CRASH_RESERVE_H #define _LOONGARCH_CRASH_RESERVE_H #define CRASH_ALIGN SZ_2M #define CRASH_ADDR_LOW_MAX SZ_4G #define CRASH_ADDR_HIGH_MAX memblock_end_of_DRAM() extern phys_addr_t memblock_end_of_DRAM(void); #endif ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/orc_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ORC_TYPES_H #define _ORC_TYPES_H #include <linux/types.h> /* * The ORC_REG_* registers are base registers which are used to find other * registers on the stack. * * ORC_REG_PREV_SP, also known as DWARF Call Frame Address (CFA), is the * address of the...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/acpi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Jianmin Lv <lvjianmin@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_ACPI_H #define _ASM_LOONGARCH_ACPI_H #include <asm/smp.h> #include <asm/suspend.h> ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/cacheflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_CACHEFLUSH_H #define _ASM_CACHEFLUSH_H #include <linux/mm.h> #include <asm/cpu-info.h> #include <asm/cacheops.h> static inline bool cache_present(struct cache_desc *cdesc) { return cdesc...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/acenv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * LoongArch specific ACPICA environments and implementation * * Author: Jianmin Lv <lvjianmin@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_ACENV_H #define _ASM...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/alternative-asm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALTERNATIVE_ASM_H #define _ASM_ALTERNATIVE_ASM_H #ifdef __ASSEMBLER__ #include <asm/asm.h> /* * Issue one struct alt_instr descriptor entry (need to put it into * the section .altinstructions, see below). This entry contains * enough information for the alt...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/atomic-amo' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Atomic operations (AMO). * * Copyright (C) 2020-2025 Loongson Technology Corporation Limited */ #ifndef _ASM_ATOMIC_AMO_H #define _ASM_ATOMIC_AMO_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> #define ATOMIC_OP(op, I, asm_op) \ st...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/sparsemem' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LOONGARCH_SPARSEMEM_H #define _LOONGARCH_SPARSEMEM_H #ifdef CONFIG_SPARSEMEM /* * SECTION_SIZE_BITS 2^N: how big each section will be * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space */ #define SECTION_SIZE_BITS 29 /* 2^29 = Largest Huge Page ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/irq_work' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_IRQ_WORK_H #define _ASM_LOONGARCH_IRQ_WORK_H static inline bool arch_irq_work_has_interrupt(void) { return IS_ENABLED(CONFIG_SMP) && cpu_opt(LOONGARCH_CPU_CSRIPI); } #endif /* _ASM_LOONGARCH_IRQ_WORK_H */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/irqflags' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_IRQFLAGS_H #define _ASM_IRQFLAGS_H #ifndef __ASSEMBLER__ #include <linux/compiler.h> #include <linux/stringify.h> #include <asm/loongarch.h> static inline void arch_local_irq_enable(void...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/futex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FUTEX_H #define _ASM_FUTEX_H #include <linux/futex.h> #include <linux/uaccess.h> #include <asm/asm-extable.h> #include <asm/barrier.h> #include <asm/errno.h> #define __futex_atomic_op(ins...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/serial' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM__SERIAL_H #define __ASM__SERIAL_H #define BASE_BAUD 0 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) #endif /* __ASM__SERIAL_H */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/uprobes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_LOONGARCH_UPROBES_H #define __ASM_LOONGARCH_UPROBES_H #include <asm/inst.h> typedef u32 uprobe_opcode_t; #define MAX_UINSN_BYTES 8 #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES #define UPROBE_SWBP_INSN __emit_break(BRK_UPROBE_BP) #define UPROBE_SWBP_IN...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/addrspace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 1996, 99 Ralf Baechle * Copyright (C) 2000, 2002 Maciej W. Rozycki * Copyright (C) 1990, 1999 by Silicon Graphics, Inc. */ #ifndef _ASM_ADDRSPACE_H #define _ASM...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kvm_ipi' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #ifndef __ASM_KVM_IPI_H #define __ASM_KVM_IPI_H #include <kvm/iodev.h> #define LARCH_INT_IPI 12 struct loongarch_ipi { spinlock_t lock; struct kvm *kvm; struct kvm_io_device device; }; struct ipi_s...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/set_memory' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_SET_MEMORY_H #define _ASM_LOONGARCH_SET_MEMORY_H /* * Functions to change memory attributes. */ int set_memory_x(unsigned long addr, int numpages); int set_memory_nx(unsigned ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/vermagic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_VERMAGIC_H #define _ASM_VERMAGIC_H #define MODULE_PROC_FAMILY "LOONGARCH " #ifdef CONFIG_32BIT #define MODULE_KERNEL_TYPE "32BIT " #elif defined CONFIG_64BIT #define MODULE_KERNEL_TYPE "6...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/stackprotector' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * GCC stack protector support. * * Stack protector works by putting predefined pattern at the start of * the stack frame and verifying that it hasn't been overwritten when * returning from the function. The pattern is called stack canary and * on LoongArch gcc expect...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/fpregdef' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions for the FPU register names * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FPREGDEF_H #define _ASM_FPREGDEF_H #define fa0 $f0 /* argument registers, fa0/fa1 reused as fv0/fv1 for return value */ #define fa1 $f1 #define...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/image' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * LoongArch binary image header for EFI(PE/COFF) format. * * Author: Youling Tang <tangyouling@kylinos.cn> * Copyright (C) 2025 KylinSoft Corporation. */ #ifndef __ASM_IMAGE_H #define __ASM_IMAGE_H #ifndef __ASSEMBLER__ /** * struct loongarch_image_header * * @d...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/asm-offsets' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <generated/asm-offsets.h> ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/module.lds' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ SECTIONS { . = ALIGN(4); .got 0 : { BYTE(0) } .plt 0 : { BYTE(0) } .plt.idx 0 : { BYTE(0) } .ftrace_trampoline 0 : { BYTE(0) } } ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_IRQ_H #define _ASM_IRQ_H #include <linux/irqdomain.h> #include <linux/irqreturn.h> #define IRQ_STACK_SIZE THREAD_SIZE #define IRQ_STACK_START (IRQ_STACK_SIZE - 16) DECLARE_PER_CPU(un...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/loongson' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_LOONGSON_H #define __ASM_LOONGSON_H #include <linux/init.h> #include <linux/io.h> #include <linux/irq.h> #include <linux/pci.h> #include <...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/tlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_TLB_H #define __ASM_TLB_H #include <linux/mm_types.h> #include <asm/cpu-features.h> #include <asm/loongarch.h> /* * TLB Invalidate Flush */ static inline void tlbclr(void) { __asm__ _...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/paravirt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_PARAVIRT_H #define _ASM_LOONGARCH_PARAVIRT_H #ifdef CONFIG_PARAVIRT #include <linux/jump_label.h> DECLARE_STATIC_KEY_FALSE(virt_preempt_key); DECLARE_STATIC_KEY_FALSE(virt_spin_lock_key); DECLARE_PER_CPU(struct kvm_steal_time, steal_time); int __ini...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/numa' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Jianmin Lv <lvjianmin@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_NUMA_H #define _ASM_LOONGARCH_NUMA_H #include <linux/nodemask.h> #define NODE_A...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/lbt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Qi Hu <huqi@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #ifndef _ASM_LBT_H #define _ASM_LBT_H #include <asm/cpu.h> #include <asm/current.h> #include <asm/loongarch.h> #inclu...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_TLBFLUSH_H #define __ASM_TLBFLUSH_H #include <linux/mm.h> /* * TLB flushing: * * - flush_tlb_all() flushes all processes TLB entries * - flush_tlb_mm(mm) flushes the specified mm c...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/atomic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Atomic operations. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ATOMIC_H #define _ASM_ATOMIC_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> #ifdef CONFIG_CPU_HAS_AMO #include <asm/atomic-amo.h> #e...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/time' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_TIME_H #define _ASM_TIME_H #include <linux/clockchips.h> #include <linux/clocksource.h> #include <asm/loongarch.h> extern u64 cpu_clock_freq; extern u64 const_clock_freq; extern void sav...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/setup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _LOONGARCH_SETUP_H #define _LOONGARCH_SETUP_H #include <linux/types.h> #include <linux/threads.h> #include <asm/sections.h> #include <uapi/asm/setup.h> #define VECSIZE 0x200 extern unsigned ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/cpufeature' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * CPU feature definitions for module loading, used by * module_cpu_feature_match(), see uapi/asm/hwcap.h for LoongArch CPU features. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CPUFEATURE_H #define __ASM_CPUFEATURE_H #include...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/mmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_MMU_H #define __ASM_MMU_H #include <linux/atomic.h> #include <linux/spinlock.h> typedef struct { u64 asid[NR_CPUS]; void *vdso; } mm_context_t; #endif /* __ASM_MMU_H */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/cpu-info' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CPU_INFO_H #define __ASM_CPU_INFO_H #include <linux/cache.h> #include <linux/types.h> #include <asm/loongarch.h> /* cache_desc->flags */ enum { CACHE_PRESENT = (1 << 0), CACHE_PRIVATE...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/branch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BRANCH_H #define _ASM_BRANCH_H #include <asm/ptrace.h> static inline unsigned long exception_era(struct pt_regs *regs) { return regs->csr_era; } static inline void compute_return_era(st...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/module' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_MODULE_H #define _ASM_MODULE_H #include <asm/inst.h> #include <asm/orc_types.h> #include <asm-generic/module.h> #define RELA_STACK_DEPTH 16 struct mod_section { int shndx; int num_entr...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/bitops' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BITOPS_H #define _ASM_BITOPS_H #include <linux/compiler.h> #ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif #include <asm/barrier.h> #ifdef CONFIG_32...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/switch_to' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_SWITCH_TO_H #define _ASM_SWITCH_TO_H #include <asm/cpu-features.h> #include <asm/fpu.h> #include <asm/lbt.h> struct task_struct; /** * __switch_to - switch execution of a task * @prev:...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/uaccess' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 1996, 1997, 1998, 1999, 2000, 03, 04 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2007 Maciej W. Rozycki * Copyright (C) 20...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/io' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_IO_H #define _ASM_IO_H #include <linux/kernel.h> #include <linux/types.h> #include <asm/addrspace.h> #include <asm/cpu.h> #include <asm/page.h> #include <asm/pgtable-bits.h> #include <asm...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/processor' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_PROCESSOR_H #define _ASM_PROCESSOR_H #include <linux/atomic.h> #include <linux/cpumask.h> #include <linux/sizes.h> #include <asm/cpu.h> #include <asm/cpu-info.h> #include <asm/hw_breakpoi...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/stackframe' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_STACKFRAME_H #define _ASM_STACKFRAME_H #include <linux/threads.h> #include <asm/addrspace.h> #include <asm/asm.h> #include <asm/asmmacro.h> #include <asm/asm-offsets.h> #include <asm/loon...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/hw_irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_HW_IRQ_H #define __ASM_HW_IRQ_H #include <linux/atomic.h> extern atomic_t irq_err_count; #define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE /* * interrupt-retrigger: NOP for now. This may not be...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kvm_eiointc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #ifndef __ASM_KVM_EIOINTC_H #define __ASM_KVM_EIOINTC_H #include <kvm/iodev.h> #define EIOINTC_IRQS 256 #define EIOINTC_ROUTE_MAX_VCPUS 256 #define EIOINTC_IRQS_U64_NUMS (EIOINTC_IRQS / 64) /* map to ...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/entry-common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef ARCH_LOONGARCH_ENTRY_COMMON_H #define ARCH_LOONGARCH_ENTRY_COMMON_H #include <asm/stacktrace.h> /* For on_thread_stack() */ #endif ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/exec' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_EXEC_H #define _ASM_EXEC_H extern unsigned long arch_align_stack(unsigned long sp); #endif /* _ASM_EXEC_H */ ```
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/fixmap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * fixmap.h: compile-time virtual memory allocation * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FIXMAP_H #define _ASM_FIXMAP_H #ifdef CONFIG_HIGHMEM #include <linux/threads.h> #include <asm/kmap_size.h> #endif #define NR_FIX_BT...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/kasan' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_KASAN_H #define __ASM_KASAN_H #ifndef __ASSEMBLER__ #include <linux/linkage.h> #include <linux/mmzone.h> #include <asm/addrspace.h> #include <asm/io.h> #include <asm/pgtable.h> #define KASAN_SHADOW_SCALE_SHIFT 3 #define KASAN_SHADOW_OFFSET _AC(CONFIG_KASAN_SH...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/asm-extable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_ASM_EXTABLE_H #define __ASM_ASM_EXTABLE_H #define EX_TYPE_NONE 0 #define EX_TYPE_FIXUP 1 #define EX_TYPE_UACCESS_ERR_ZERO 2 #define EX_TYPE_BPF 3 #ifdef __ASSEMBLER__ #define __ASM_EXTABLE_RAW(insn, fixup, type, data) \ .pushsection __ex_table, "a...
Linux işletim sistemi çekirdeği için 'arch/loongarch/include/asm/types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_TYPES_H #define _ASM_TYPES_H #include <asm-generic/int-ll64.h> #include <uapi/asm/types.h> #ifdef __ASSEMBLER__ #define _ULCAST_ #define _U64CAST_ #else #define _ULCAST_ (unsigned long) #...