instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/sparsemem' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALPHA_SPARSEMEM_H #define _ASM_ALPHA_SPARSEMEM_H #ifdef CONFIG_SPARSEMEM #define SECTION_SIZE_BITS 27 /* * According to "Alpha Architecture Reference Manual" physical * addresses are at most 48 bits. * https://download.majix.org/dec/alpha_arch_ref.pdf */ #...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/irqflags' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_IRQFLAGS_H #define __ALPHA_IRQFLAGS_H #include <asm/pal.h> #define IPL_MIN 0 #define IPL_SW0 1 #define IPL_SW1 2 #define IPL_DEV0 3 #define IPL_DEV1 4 #define IPL_TIMER 5 #define IPL_PERF 6 #define IPL_POWERFAIL 6 #define IPL_MCHECK 7 #define IPL_MAX 7 ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/futex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALPHA_FUTEX_H #define _ASM_ALPHA_FUTEX_H #ifdef __KERNEL__ #include <linux/futex.h> #include <linux/uaccess.h> #include <asm/errno.h> #include <asm/barrier.h> #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ __asm__ __volatile__( \ __ASM_SMP...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/serial' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-alpha/serial.h */ /* * This assumes you have a 1.8432 MHz clock for your UART. * * It'd be nice if someone built a serial card with a 24.576 MHz * clock, since the 16550A is capable of handling a top speed of 1.5 * megabits/second; but this requires ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/device' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Arch specific extensions to struct device */ #include <asm-generic/device.h> ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_marvel' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Marvel systems use the IO7 I/O chip provides PCI/PCIX/AGP access * * This file is based on: * * Marvel / EV7 System Programmer's Manual * Revision 1.00 * 14 May 2001 */ #ifndef __ALPHA_MARVEL__H__ #define __ALPHA_MARVEL__H__ #include <linux/types.h> #include <l...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/user' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_USER_H #define _ALPHA_USER_H #include <linux/sched.h> #include <linux/ptrace.h> #include <asm/page.h> #include <asm/reg.h> /* * Core file format: The core file is written in such a way that gdb * can understand it and provide useful information to the user...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/dma-mapping' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_DMA_MAPPING_H #define _ALPHA_DMA_MAPPING_H extern const struct dma_map_ops alpha_pci_ops; static inline const struct dma_map_ops *get_arch_dma_ops(void) { return &alpha_pci_ops; } #endif /* _ALPHA_DMA_MAPPING_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_IRQ_H #define _ALPHA_IRQ_H /* * linux/include/alpha/irq.h * * (C) 1994 Linus Torvalds */ #include <linux/linkage.h> #if defined(CONFIG_ALPHA_GENERIC) /* Here NR_IRQS is not exact, but rather an upper bound. This is used many places throughout the ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/agp_backend' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_AGP_BACKEND_H #define _ALPHA_AGP_BACKEND_H 1 typedef union _alpha_agp_mode { struct { u32 rate : 3; u32 reserved0 : 1; u32 fw : 1; u32 fourgb : 1; u32 reserved1 : 2; u32 enable : 1; u32 sba : 1; u32 reserved2 : 14; u32 rq : 8; } bits; u32 ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/tlb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_TLB_H #define _ALPHA_TLB_H #include <asm-generic/tlb.h> #define __pte_free_tlb(tlb, pte, address) tlb_remove_ptdesc((tlb), page_ptdesc(pte)) #define __pmd_free_tlb(tlb, pmd, address) tlb_remove_ptdesc((tlb), virt_to_ptdesc(pmd)) #endif ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/special_insns' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_SPECIAL_INSNS_H #define __ALPHA_SPECIAL_INSNS_H enum implver_enum { IMPLVER_EV4, IMPLVER_EV5, IMPLVER_EV6 }; #ifdef CONFIG_ALPHA_GENERIC #define implver() \ ({ unsigned long __implver; \ __asm__ ("implver %0" : "=r"(__implver)); \ (enum implver...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/shmparam' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASMAXP_SHMPARAM_H #define _ASMAXP_SHMPARAM_H #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ #endif /* _ASMAXP_SHMPARAM_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/tlbflush' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_TLBFLUSH_H #define _ALPHA_TLBFLUSH_H #include <linux/mm.h> #include <linux/sched.h> #include <asm/compiler.h> #ifndef __EXTERN_INLINE #define __EXTERN_INLINE extern inline #define __MMU_EXTERN_INLINE #endif extern void __load_new_mm_context(struct mm_struct ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/atomic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_ATOMIC_H #define _ALPHA_ATOMIC_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> /* * Atomic operations that C can't guarantee us. Useful for * resource counting etc... * * But use these as seldom as possible since they are muc...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/setup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ALPHA_SETUP_H #define __ALPHA_SETUP_H #include <uapi/asm/setup.h> /* * We leave one page for the initial stack page, and one page for * the initial process structure. Also, the console eats 3 MB for * the initial bootloader (one of which we can reclaim lat...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/mmu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_MMU_H #define __ALPHA_MMU_H /* The alpha MMU context is one "unsigned long" bitmap per CPU */ typedef unsigned long mm_context_t[NR_CPUS]; #endif ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/module' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_MODULE_H #define _ALPHA_MODULE_H #include <asm-generic/module.h> struct mod_arch_specific { unsigned int gotsecindex; }; #define ARCH_SHF_SMALL SHF_ALPHA_GPREL #ifdef MODULE asm(".section .got,\"aws\",@progbits; .align 3; .previous"); #endif #endif /*_ALP...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_t2' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_T2__H__ #define __ALPHA_T2__H__ /* Fit everything into one 128MB HAE window. */ #define T2_ONE_HAE_WINDOW 1 #include <linux/types.h> #include <linux/spinlock.h> #include <asm/compiler.h> /* * T2 is the internal name for the core logic chipset which provide...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/bitops' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_BITOPS_H #define _ALPHA_BITOPS_H #ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif #include <asm/compiler.h> #include <asm/barrier.h> /* * Copyright 1994, Linus Torvalds. */ /* * These have to be done with inline assemb...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/switch_to' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_SWITCH_TO_H #define __ALPHA_SWITCH_TO_H struct task_struct; extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *); #define switch_to(P,N,L) \ do { \ (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb)...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/uaccess' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_UACCESS_H #define __ALPHA_UACCESS_H #include <asm-generic/access_ok.h> /* * These are the main single-value transfer routines. They automatically * use the right size if we just have the right pointer type. * * As the alpha uses the same address space fo...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/io' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_IO_H #define __ALPHA_IO_H #ifdef __KERNEL__ #include <linux/kernel.h> #include <linux/mm.h> #include <asm/compiler.h> #include <asm/machvec.h> #include <asm/hwrpb.h> /* * Virtual -> physical identity mapping starts at this offset */ #ifdef USE_48_BIT_KSEG...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/processor' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-alpha/processor.h * * Copyright (C) 1994 Linus Torvalds */ #ifndef __ASM_ALPHA_PROCESSOR_H #define __ASM_ALPHA_PROCESSOR_H /* * We have a 42-bit user address space: 4TB user VM... */ #define TASK_SIZE (0x40000000000UL) #define STACK_TOP (0x0012000000...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/gct' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_GCT_H #define __ALPHA_GCT_H typedef u64 gct_id; typedef u64 gct6_handle; typedef struct __gct6_node { u8 type; u8 subtype; u16 size; u32 hd_extension; gct6_handle owner; gct6_handle active_user; gct_id id; u64 flags; u16 rev; u16 change_counter; ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/floppy' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Architecture specific parts of the Floppy driver * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1995 */ #ifndef __ASM_ALPHA_FLOPPY_H #define __ASM_ALPHA_FLOPPY...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/rwonce' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2019 Google LLC. */ #ifndef __ASM_RWONCE_H #define __ASM_RWONCE_H #ifdef CONFIG_SMP #include <asm/barrier.h> /* * Alpha is apparently daft enough to reorder address-dependent loads * on some CPU implementations. Knock some common sense into it with ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/sfp-machine' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* Machine-dependent software floating-point definitions. Alpha kernel version. Copyright (C) 1997,1998,1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (rth@cygnus.com), Jakub Jelinek (jakub@redhat.com) and David S. Miller (davem@redh...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/err_ev7' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_ERR_EV7_H #define __ALPHA_ERR_EV7_H 1 /* * Data for el packet class PAL (14), type LOGOUT_FRAME (1) */ struct ev7_pal_logout_subpacket { u32 mchk_code; u32 subpacket_count; u64 whami; u64 rbox_whami; u64 rbox_int; u64 exc_addr; union el_timestamp tim...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_polaris' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_POLARIS__H__ #define __ALPHA_POLARIS__H__ #include <linux/types.h> #include <asm/compiler.h> /* * POLARIS is the internal name for a core logic chipset which provides * memory controller and PCI access for the 21164PC chip based systems. * * This file is...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/hw_irq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_HW_IRQ_H #define _ALPHA_HW_IRQ_H extern volatile unsigned long irq_err_count; DECLARE_PER_CPU(unsigned long, irq_pmi_count); #ifdef CONFIG_ALPHA_GENERIC #define ACTUAL_NR_IRQS alpha_mv.nr_irqs #else #define ACTUAL_NR_IRQS NR_IRQS #endif #endif ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/pal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_PAL_H #define __ALPHA_PAL_H #include <uapi/asm/pal.h> #ifndef __ASSEMBLER__ extern void halt(void) __attribute__((noreturn)); #define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt)) #define imb() \ __asm__ __volatile__ ("call_pal %0 ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_TYPES_H #define _ALPHA_TYPES_H #include <uapi/asm/types.h> #endif /* _ALPHA_TYPES_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/hwrpb' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_HWRPB_H #define __ALPHA_HWRPB_H #define INIT_HWRPB ((struct hwrpb_struct *) 0x10000000) /* * DEC processor types for Alpha systems. Found in HWRPB. * These values are architected. */ #define EV3_CPU 1 /* EV3 */ #de...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/barrier' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __BARRIER_H #define __BARRIER_H #define mb() __asm__ __volatile__("mb": : :"memory") #define rmb() __asm__ __volatile__("mb": : :"memory") #define wmb() __asm__ __volatile__("wmb": : :"memory") #define __smp_load_acquire(p) \ ({ \ compiletime_assert_at...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_tsunami' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_TSUNAMI__H__ #define __ALPHA_TSUNAMI__H__ #include <linux/types.h> #include <asm/compiler.h> /* * TSUNAMI/TYPHOON are the internal names for the core logic chipset which * provides memory controller and PCI access for the 21264 based systems. * * This fi...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/spinlock_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_SPINLOCK_TYPES_H #define _ALPHA_SPINLOCK_TYPES_H #ifndef __LINUX_SPINLOCK_TYPES_RAW_H # error "Please do not include this file directly." #endif typedef struct { volatile unsigned int lock; } arch_spinlock_t; #define __ARCH_SPIN_LOCK_UNLOCKED { 0 } typedef...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/spinlock' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_SPINLOCK_H #define _ALPHA_SPINLOCK_H #include <linux/kernel.h> #include <asm/current.h> #include <asm/barrier.h> #include <asm/processor.h> /* * Simple spin lock operations. There are two variants, one clears IRQ's * on the local processor, one does not. ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/syscall' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALPHA_SYSCALL_H #define _ASM_ALPHA_SYSCALL_H #include <uapi/linux/audit.h> #include <linux/audit.h> #include <linux/sched.h> #include <linux/types.h> #include <asm/ptrace.h> static inline int syscall_get_arch(struct task_struct *task) { return AUDIT_ARCH_ALPHA...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/percpu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_PERCPU_H #define __ALPHA_PERCPU_H /* * To calculate addresses of locally defined variables, GCC uses * 32-bit displacement from the GP. Which doesn't work for per cpu * variables in modules, as an offset to the kernel per cpu area is * way above 4G. * *...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/cache' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-alpha/cache.h */ #ifndef __ARCH_ALPHA_CACHE_H #define __ARCH_ALPHA_CACHE_H /* Bytes per L1 (data) cache line. */ #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EV6) # define L1_CACHE_BYTES 64 # define L1_CACHE_SHIFT 6 #else /* Both EV4 ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/compiler' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_COMPILER_H #define __ALPHA_COMPILER_H #include <uapi/asm/compiler.h> #endif /* __ALPHA_COMPILER_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/smp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SMP_H #define __ASM_SMP_H #include <linux/threads.h> #include <linux/cpumask.h> #include <linux/bitops.h> #include <asm/pal.h> /* HACK: Cabrio WHAMI return value is bogus if more than 8 bits used.. :-( */ static __inline__ unsigned char __hard_smp_processor_i...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/timex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * linux/include/asm-alpha/timex.h * * ALPHA architecture timex specifications */ #ifndef _ASMALPHA_TIMEX_H #define _ASMALPHA_TIMEX_H /* With only one or two oddballs, we use the RTC as the ticker, selecting the 32.768kHz reference clock, which nicely divides down t...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/checksum' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_CHECKSUM_H #define _ALPHA_CHECKSUM_H #include <linux/in6.h> /* * This is a version of ip_compute_csum() optimized for IP headers, * which always checksum on 4 octet boundaries. */ extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); /* * compu...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/mmu_context' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_MMU_CONTEXT_H #define __ALPHA_MMU_CONTEXT_H /* * get a new mmu context.. * * Copyright (C) 1996, Linus Torvalds */ #include <linux/mm_types.h> #include <linux/sched.h> #include <asm/machvec.h> #include <asm/compiler.h> #include <asm-generic/mm_hooks.h> ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/thread_info' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_THREAD_INFO_H #define _ALPHA_THREAD_INFO_H #ifdef __KERNEL__ #ifndef __ASSEMBLER__ #include <asm/processor.h> #include <asm/types.h> #include <asm/hwrpb.h> #include <asm/sysinfo.h> #endif #ifndef __ASSEMBLER__ struct thread_info { struct pcb_struct pcb; /*...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/string' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_STRING_H__ #define __ALPHA_STRING_H__ #ifdef __KERNEL__ /* * GCC of any recent vintage doesn't do stupid things with bcopy. * EGCS 1.1 knows all about expanding memcpy inline, others don't. * * Similarly for a memset with data = 0. */ #define __HAVE_AR...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/console' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __AXP_CONSOLE_H #define __AXP_CONSOLE_H #include <uapi/asm/console.h> #ifndef __ASSEMBLER__ extern long callback_puts(long unit, const char *s, long length); extern long callback_getc(long unit); extern long callback_open_console(void); extern long callback_close_co...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/ucontext' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASMAXP_UCONTEXT_H #define _ASMAXP_UCONTEXT_H struct ucontext { unsigned long uc_flags; struct ucontext *uc_link; old_sigset_t uc_osf_sigmask; stack_t uc_stack; struct sigcontext uc_mcontext; sigset_t uc_sigmask; /* mask last for extensibility */ }; ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/vga' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Access to VGA videoram * * (c) 1998 Martin Mares <mj@ucw.cz> */ #ifndef _LINUX_ASM_VGA_H_ #define _LINUX_ASM_VGA_H_ #include <asm/io.h> #define VT_BUF_HAVE_RW #define VT_BUF_HAVE_MEMSETW #define VT_BUF_HAVE_MEMCPYW #define VT_BUF_HAVE_MEMMOVEW static inline void ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/extable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_EXTABLE_H #define _ASM_EXTABLE_H /* * About the exception table: * * - insn is a 32-bit pc-relative offset from the faulting insn. * - nextinsn is a 16-bit offset off of the faulting instruction * (not off of the *next* instruction as branches are). * - ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/local' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_LOCAL_H #define _ALPHA_LOCAL_H #include <linux/percpu.h> #include <linux/atomic.h> typedef struct { atomic_long_t a; } local_t; #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } #define local_read(l) atomic_long_read(&(l)->a) #define local_set(l,i) atomic_long_...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_wildfire' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_WILDFIRE__H__ #define __ALPHA_WILDFIRE__H__ #include <linux/types.h> #include <asm/compiler.h> #define WILDFIRE_MAX_QBB 8 /* more than 8 requires other mods */ #define WILDFIRE_PCA_PER_QBB 4 #define WILDFIRE_IRQ_PER_PCA 64 #define WILDFIRE_NR_IRQS \ (WILD...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/err_ev6' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __ALPHA_ERR_EV6_H #define __ALPHA_ERR_EV6_H 1 /* Dummy include for now. */ #endif /* __ALPHA_ERR_EV6_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/asm-prototypes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #include <linux/spinlock.h> #include <asm/checksum.h> #include <asm/console.h> #include <asm/page.h> #include <asm/string.h> #include <linux/uaccess.h> #include <asm-generic/asm-prototypes.h> extern void __divl(void); extern void __reml(void); extern void __divq(void); extern void __remq(void); extern void __di...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/core_titan' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_TITAN__H__ #define __ALPHA_TITAN__H__ #include <linux/types.h> #include <asm/compiler.h> /* * TITAN is the internal names for a core logic chipset which provides * memory controller and PCI/AGP access for 21264 based systems. * * This file is based on: ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/cmpxchg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_CMPXCHG_H #define _ALPHA_CMPXCHG_H /* * Atomic exchange. * Since it can be used to implement critical sections * it must clobber "memory" (also for interrupts in UP). */ static inline unsigned long ____xchg_u8(volatile char *m, unsigned long val) { unsig...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/pgtable' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_PGTABLE_H #define _ALPHA_PGTABLE_H #include <asm-generic/pgtable-nopud.h> /* * This file contains the functions and defines necessary to modify and use * the Alpha page table tree. * * This hopefully works with any standard Alpha page-size, as defined * ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/machvec' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_MACHVEC_H #define __ALPHA_MACHVEC_H 1 #include <linux/types.h> /* * This file gets pulled in by asm/io.h from user space. We don't * want most of this escaping. */ #ifdef __KERNEL__ /* The following structure vectors all of the I/O and IRQ manipulation...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/hardirq' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_HARDIRQ_H #define _ALPHA_HARDIRQ_H void ack_bad_irq(unsigned int irq); #define ack_bad_irq ack_bad_irq #include <asm-generic/hardirq.h> #endif /* _ALPHA_HARDIRQ_H */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/pgalloc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_PGALLOC_H #define _ALPHA_PGALLOC_H #include <linux/mm.h> #include <linux/mmzone.h> #include <asm-generic/pgalloc.h> /* * Allocate and free page tables. The xxx_kernel() versions are * used to allocate a kernel page table - this turns on ASN bits * i...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/delay' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_DELAY_H #define __ALPHA_DELAY_H extern void __delay(int loops); extern void udelay(unsigned long usecs); extern void ndelay(unsigned long nsecs); #define ndelay ndelay #endif /* defined(__ALPHA_DELAY_H) */ ```
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/page' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_PAGE_H #define _ALPHA_PAGE_H #include <linux/const.h> #include <asm/pal.h> #include <vdso/page.h> #ifndef __ASSEMBLER__ #define STRICT_MM_TYPECHECKS extern void clear_page(void *page); #define vma_alloc_zeroed_movable_folio(vma, vaddr) \ vma_alloc_folio(G...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/pci' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_PCI_H #define __ALPHA_PCI_H #ifdef __KERNEL__ #include <linux/spinlock.h> #include <linux/dma-mapping.h> #include <linux/scatterlist.h> #include <asm/machvec.h> /* * The following structure is used to manage multiple PCI busses. */ struct pci_iommu_arena...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/io_trivial' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* Trivial implementations of basic i/o routines. Assumes that all of the hard work has been done by ioremap and ioportmap, and that access to i/o space is linear. */ /* This file may be included multiple times. */ #if IO_CONCAT(__IO_PREFIX,trivial_io_bw) __EXTERN_...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/unistd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_UNISTD_H #define _ALPHA_UNISTD_H #include <uapi/asm/unistd.h> #define NR_syscalls __NR_syscalls #define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_FADVISE64 #def...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/bug' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/mc146818rtc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Machine dependent access functions for RTC registers. */ #ifndef __ASM_ALPHA_MC146818RTC_H #define __ASM_ALPHA_MC146818RTC_H #include <asm/io.h> #ifndef RTC_PORT #define RTC_PORT(x) (0x70 + (x)) #define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */ #endif /* *...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/err_common' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * linux/include/asm-alpha/err_common.h * * Copyright (C) 2000 Jeff Wiedemeier (Compaq Computer Corporation) * * Contains declarations and macros to support Alpha error handling * implementations. */ #ifndef __ALPHA_ERR_COMMON_H #define __ALPHA_ERR_COMMON_H 1 /* ...
Linux işletim sistemi çekirdeği için 'arch/alpha/include/asm/linkage' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_LINKAGE_H #define __ASM_LINKAGE_H #define cond_syscall(x) asm(".weak\t" #x "\n" #x " = sys_ni_syscall") #define SYSCALL_ALIAS(alias, name) \ asm ( #alias " = " #name "\n\t.globl " #alias) #endif ```
Linux kernel'inin 'arch/alpha/mm/tlbflush' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Alpha TLB shootdown helpers * * Copyright (C) 2025 Magnus Lindholm <linmag7@gmail.com> * * Alpha-specific TLB flush helpers that cannot be expressed purely * as inline functions. * * These helpers provide combined MM context handling (ASN rollover) * and immediate ...
Linux kernel'inin 'arch/alpha/mm/init' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/mm/init.c * * Copyright (C) 1995 Linus Torvalds */ /* 2.3.x zone allocator, 1999 Andrea Arcangeli <andrea@suse.de> */ #include <linux/pagemap.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #...
Linux kernel'inin 'arch/alpha/mm/fault' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/mm/fault.c * * Copyright (C) 1995 Linus Torvalds */ #include <linux/sched/signal.h> #include <linux/kernel.h> #include <linux/mm.h> #include <asm/io.h> #define __EXTERN_INLINE inline #include <asm/mmu_context.h> #include <asm/tlbflush.h> #undef __...
Linux kernel'inin 'arch/alpha/lib/srm_puts' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/srm_puts.c */ #include <linux/string.h> #include <asm/console.h> long srm_puts(const char *str, long len) { long remaining, written; if (!callback_init_done) return len; for (remaining = len; remaining > 0; remaining -= written) { written = call...
Linux kernel'inin 'arch/alpha/lib/stacktrace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> typedef unsigned int instr; #define MAJOR_OP 0xfc000000 #define LDA_OP 0x20000000 #define STQ_OP 0xb4000000 #define BR_OP 0xc0000000 #define STK_ALLOC_1 0x23de8000 /* lda $30,-X($30) */ #define STK_ALLOC_1M 0xffff8000 #define STK_ALLOC_2 0x43c0153...
Linux kernel'inin 'arch/alpha/lib/checksum' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/checksum.c * * This file contains network checksum routines that are better done * in an architecture-specific manner due to speed.. * Comments in other versions indicate that the algorithms are from RFC1071 * * accelerated versions (and 21264 assembly...
Linux kernel'inde 'arch/alpha/lib/ev6-memcpy' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memcpy.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Reasonably optimized memcpy() routine for the Alpha 21264 * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * * M...
Linux kernel'inde 'arch/alpha/lib/dbg_stackkill' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/dbg_stackkill.S * Contributed by Richard Henderson (rth@cygnus.com) * * Clobber the balance of the kernel stack, hoping to catch * uninitialized local variables in the act. */ #include <asm/asm-offsets.h> .text .set noat .align 5 .globl...
Linux kernel'inde 'arch/alpha/lib/memchr' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* Copyright (C) 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger (davidm@cs.arizona.edu). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as publi...
Linux kernel'inde 'arch/alpha/lib/stycpy' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly #include "strcpy.S" #ifdef CONFIG_ALPHA_EV67 #include "ev67-strcat.S" #else #include "strcat.S" #endif #ifdef CONFIG_ALPHA_EV6 #include "ev6-stxcpy.S" #else #include "stxcpy.S" #endif ```
Linux kernel'inde 'arch/alpha/lib/memmove' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/memmove.S * * Barely optimized memmove routine for Alpha EV5. * * This is hand-massaged output from the original memcpy.c. We defer to * memcpy whenever possible; the backwards copy loops are not unrolled. */ #include <linux/export.h> .set ...
Linux kernel'inde 'arch/alpha/lib/ev6-memchr' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memchr.S * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds characters in a memory area. Optimized for the Alpha: * * - memory accessed as aligned quadwords only * - uses cmpbge to compare 8 b...
Linux kernel'inde 'arch/alpha/lib/strcpy' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strcpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy a null-terminated string from SRC to DST. Return a pointer * to the null-terminator in the source. */ #include <linux/export.h> .text .align 3 .globl strcpy .ent strcpy ...
Linux kernel'inin 'arch/alpha/lib/fls' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/fls.c */ #include <linux/module.h> #include <linux/bitops.h> /* This is fls(x)-1, except zero is held to zero. This allows most efficient input into extbl, plus it allows easy handling of fls(0)=0. */ const unsigned char __flsm1_tab[256] = { 0, ...
Linux kernel'inde 'arch/alpha/lib/ev67-strcat' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strcat.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Append a null-terminated string from SRC to DST. * * Much of the information about 21264 scheduling/coding comes from: * Compiler Writer's Guide fo...
Linux kernel'inde 'arch/alpha/lib/ev6-memset' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memset.S * * This is an efficient (and relatively small) implementation of the C library * "memset()" function for the 21264 implementation of Alpha. * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Muc...
Linux kernel'inde 'arch/alpha/lib/strcat' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strcat.S * Contributed by Richard Henderson (rth@tamu.edu) * * Append a null-terminated string from SRC to DST. */ #include <linux/export.h> .text .align 3 .globl strcat .ent strcat strcat: .frame $30, 0, $26 .prologue 0 mov $16, $0 ...
Linux kernel'inde 'arch/alpha/lib/clear_page' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/clear_page.S * * Zero an entire page. */ #include <linux/export.h> .text .align 4 .global clear_page .ent clear_page clear_page: .prologue 0 lda $0,128 nop unop nop 1: stq $31,0($16) stq $31,8($16) stq $31,16($16) stq $31,24($16) ...
Linux kernel'inde 'arch/alpha/lib/copy_user' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/copy_user.S * * Copy to/from user space, handling exceptions as we go.. This * isn't exactly pretty. * * This is essentially the same as "memcpy()", but with a few twists. * Notably, we have to make sure that $0 is always up-to-date and * c...
Linux kernel'inde 'arch/alpha/lib/ev6-copy_page' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-copy_page.S * * Copy an entire page. */ /* The following comparison of this routine vs the normal copy_page.S was written by an unnamed ev6 hardware designer and forwarded to me via Steven Hobbs <hobbs@steven.zko.dec.com>. First ...
Linux kernel'inde 'arch/alpha/lib/ev67-strchr' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strchr.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Return the address of a given character within a null-terminated * string, or null if it is not found. * * Much of the information about 21264 sche...
Linux kernel'inde 'arch/alpha/lib/memset' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/alpha/lib/memset.S * * This is an efficient (and small) implementation of the C library "memset()" * function for the alpha. * * (C) Copyright 1996 Linus Torvalds * * This routine is "moral-ware": you are free to use it any way you wish, and * ...
Linux kernel'inde 'arch/alpha/lib/ev6-stxcpy' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-stxcpy.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Copy a null-terminated string from SRC to DST. * * This is an internal routine used by strcpy, stpcpy, and strcat. * As such, it uses special linkag...
Linux kernel'inde 'arch/alpha/lib/callback_srm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/callback_srm.S */ #include <linux/export.h> #include <asm/console.h> .text #define HWRPB_CRB_OFFSET 0xc0 #if defined(CONFIG_ALPHA_SRM) || defined(CONFIG_ALPHA_GENERIC) .align 4 srm_dispatch: #if defined(CONFIG_ALPHA_GENERIC) ldl $4,alpha_using...
Linux kernel'inin 'arch/alpha/lib/udelay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1993, 2000 Linus Torvalds * * Delay routines, using a pre-computed "loops_per_jiffy" value. */ #include <linux/module.h> #include <linux/sched.h> /* for udelay's use of smp_processor_id */ #include <asm/param.h> #include <asm/smp.h> #include <linux/delay....
Linux kernel'inde 'arch/alpha/lib/styncpy' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly #include "strncpy.S" #ifdef CONFIG_ALPHA_EV67 #include "ev67-strncat.S" #else #include "strncat.S" #endif #ifdef CONFIG_ALPHA_EV6 #include "ev6-stxncpy.S" #else #include "stxncpy.S" #endif ```
Linux kernel'inde 'arch/alpha/lib/divide' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/divide.S * * (C) 1995 Linus Torvalds * * Alpha division.. */ /* * The alpha chip doesn't provide hardware division, so we have to do it * by hand. The compiler expects the functions * * __divqu: 64-bit unsigned long divide * __remqu: 64...
Linux kernel'inde 'arch/alpha/lib/copy_page' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/copy_page.S * * Copy an entire page. */ #include <linux/export.h> .text .align 4 .global copy_page .ent copy_page copy_page: .prologue 0 lda $18,128 nop unop nop 1: ldq $0,0($17) ldq $1,8($17) ldq $2,16($17) ldq $3,24($17) ldq $4...
Linux kernel'inin 'arch/alpha/lib/fpreg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/fpreg.c * * (C) Copyright 1998 Linus Torvalds */ #include <linux/compiler.h> #include <linux/export.h> #include <linux/preempt.h> #include <asm/fpu.h> #include <asm/thread_info.h> #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) #define STT(r...