instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'arch/powerpc/kernel/signal_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Signal handling for 32bit PPC and 32bit tasks on 64bit PPC * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Copyright (C) 2001 IBM * Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) * Copyright (C) 1997 David S...
Linux kernel'inin 'arch/powerpc/kernel/vdso' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> */ #include <linux/errno.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/stddef.h> #include <linux/unistd...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/cacheinfo' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_CACHEINFO_H #define _PPC_CACHEINFO_H /* These are just hooks for sysfs.c to use. */ extern void cacheinfo_cpu_online(unsigned int cpu_id); extern void cacheinfo_cpu_offline(unsigned int cpu_id); /* Allow migration/suspend to tear down and rebuild the hierarchy....
Linux kernel'inin 'arch/powerpc/kernel/rethook' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * PowerPC implementation of rethook. This depends on kprobes. */ #include <linux/kprobes.h> #include <linux/rethook.h> /* * Function return trampoline: * - init_kprobes() establishes a probepoint here * - When the probed function returns, this probe * ...
Linux kernel'inin 'arch/powerpc/kernel/dt_cpu_ftrs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2017, Nicholas Piggin, IBM Corporation */ #define pr_fmt(fmt) "dt-cpu-ftrs: " fmt #include <linux/export.h> #include <linux/init.h> #include <linux/jump_label.h> #include <linux/libfdt.h> #include <linux/memblock.h> #include <linux/of_fdt.h> #include <lin...
Linux kernel'inde 'arch/powerpc/kernel/switch' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ #include <linux/objtool.h> #include <asm/asm-offsets.h> #include <asm/code-patching-asm.h> #include <asm/mmu.h> #include <asm/ppc_asm.h> #include <asm/kup.h> #include <asm/thread_info.h> .section ".text","ax",@progbits #ifdef CONFIG_PPC_BOOK3S_64 /* * Cance...
Linux kernel'inde 'arch/powerpc/kernel/misc_64' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains miscellaneous low-level functions. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)...
Linux kernel'inin 'arch/powerpc/kernel/isa-bridge' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Routines for tracking a legacy ISA bridge * * Copyrigh 2007 Benjamin Herrenschmidt <benh@kernel.crashing.org>, IBM Corp. * * Some bits and pieces moved over from pci_64.c * * Copyrigh 2003 Anton Blanchard <anton@au.ibm.com>, IBM Corp. */ #define DEBUG #in...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/setup' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Prototypes for functions that are shared between setup_(32|64|common).c * * Copyright 2016 Michael Ellerman, IBM Corporation. */ #ifndef __ARCH_POWERPC_KERNEL_SETUP_H #define __ARCH_POWERPC_KERNEL_SETUP_H void initialize_cache_info(void); void irqstack_ear...
Linux kernel'inin 'arch/powerpc/kernel/time' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Common time routines among all ppc machines. * * Written by Cort Dougan (cort@cs.nmt.edu) to merge * Paul Mackerras' version and mine for PReP and Pmac. * MPC8xx/MBX changes by Dan Malek (dmalek@jlc.net). * Converted for 64-bit by Mike Corrigan (mikejc@us.ibm...
Linux kernel'inin 'arch/powerpc/kernel/firmware' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Extracted from cputable.c * * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) * * Modifications for ppc64: * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> * Copyright (C) 2005 Stephen Rothwell, IBM Corporation */ #incl...
Linux kernel'inin 'arch/powerpc/kernel/signal' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Common signal handling code for both 32 and 64 bits * * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Corporation * Extracted from signal_32.c and signal_64.c */ #include <linux/resume_user_mode.h> #include <linux/signal.h> #include <linux/uprobes.h> #...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/cpu_specs_44x' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) */ #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ PPC_FEATURE_BOOKE) static struct cpu_spec cpu_specs[] __initdata = { { .pvr_mask = 0xf0000fff, .pvr_value = 0...
Linux kernel'inin 'arch/powerpc/kernel/ima_arch' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019 IBM Corporation * Author: Nayna Jain */ #include <linux/ima.h> #include <asm/secure_boot.h> /* * The "secure_rules" are enabled only on "secureboot" enabled systems. * These rules verify the file signatures against known good values. * The "apprai...
Linux kernel'inde 'arch/powerpc/kernel/kvm_emul' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright SUSE Linux Products GmbH 2010 * Copyright 2010-2011 Freescale Semiconductor, Inc. * * Authors: Alexander Graf <agraf@suse.de> */ #include <asm/ppc_asm.h> #include <asm/kvm_asm.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/asm-...
Linux kernel'inin 'arch/powerpc/kernel/module' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Kernel module help for powerpc. Copyright (C) 2001, 2003 Rusty Russell IBM Corporation. Copyright (C) 2008 Freescale Semiconductor, Inc. */ #include <linux/elf.h> #include <linux/moduleloader.h> #include <linux/err.h> #include <linux/mm.h> #include <linux/b...
Linux kernel'inin 'arch/powerpc/kernel/eeh_event' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (c) 2005 Linas Vepstas <linas@linas.org> */ #include <linux/delay.h> #include <linux/list.h> #include <linux/sched.h> #include <linux/semaphore.h> #include <linux/pci.h> #include <linux/slab.h> #include <linux/kthread.h> #include <asm/eeh_event.h> #...
Linux kernel'inin 'arch/powerpc/kernel/eeh_cache' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PCI address cache; allows the lookup of PCI devices based on I/O address * * Copyright IBM Corporation 2004 * Copyright Linas Vepstas <linas@austin.ibm.com> 2004 */ #include <linux/list.h> #include <linux/pci.h> #include <linux/rbtree.h> #include <linux/slab....
Linux kernel'inin 'arch/powerpc/kernel/epapr_paravirt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ePAPR para-virtualization support. * * Copyright (C) 2012 Freescale Semiconductor, Inc. */ #include <linux/of.h> #include <linux/of_fdt.h> #include <asm/epapr_hcalls.h> #include <asm/cacheflush.h> #include <asm/text-patching.h> #include <asm/machdep.h> #include <a...
Linux kernel'inin 'arch/powerpc/kernel/cpu_setup_power' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2020, Jordan Niethe, IBM Corporation. * * This file contains low level CPU setup functions. * Originally written in assembly by Benjamin Herrenschmidt & various other * authors. */ #include <asm/reg.h> #include <asm/synch.h> #include <linux/bitops....
Linux kernel'inin 'arch/powerpc/kernel/optprobes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Code for Kernel probes Jump optimization. * * Copyright 2017, Anju T, IBM Corp. */ #include <linux/kprobes.h> #include <linux/jump_label.h> #include <linux/types.h> #include <linux/slab.h> #include <linux/list.h> #include <asm/kprobes.h> #include <asm/ptrace.h...
Linux kernel'inin 'arch/powerpc/kernel/proc_powerpc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen IBM Corporation */ #include <linux/init.h> #include <linux/memblock.h> #include <linux/mm.h> #include <linux/proc_fs.h> #include <linux/kernel.h> #include <linux/of.h> #include <linux/string.h> #include <asm/m...
Linux kernel'inin 'arch/powerpc/kernel/static_call' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/memory.h> #include <linux/static_call.h> #include <asm/text-patching.h> void arch_static_call_transform(void *site, void *tramp, void *func, bool tail) { int err; bool is_ret0 = (func == __static_call_return0); unsigned long _tramp = (unsigned long)tramp; u...
Linux kernel'inin 'arch/powerpc/kernel/pci_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Port for PPC64 David Engebretsen, IBM Corp. * Contains common pci routines for ppc64 platform, pSeries and iSeries brands. * * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM * Rework, based on alpha PCI code. */ #undef DEBUG #include <linux/k...
Linux kernel'inde 'arch/powerpc/kernel/misc_32' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains miscellaneous low-level functions. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * */ #include <linux/export.h> #include <linux/sys.h> #i...
Linux kernel'inde 'arch/powerpc/kernel/l2cr_6xx' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* L2CR functions Copyright © 1997-1998 by PowerLogix R & D, Inc. */ /* Thur, Dec. 12, 1998. - First public release, contributed by PowerLogix. *********** Sat, Aug. 7, 1999. - Terry: Made sure code disabled interrupts before running. (Previously it...
Linux kernel'inde 'arch/powerpc/kernel/swsusp_85xx' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Based on swsusp_32.S, modified for FSL BookE by * Anton Vorontsov <avorontsov@ru.mvista.com> * Copyright (c) 2009-2010 MontaVista Software, LLC. */ #include <linux/threads.h> #include <asm/processor.h> #include <asm/page.h> #include <asm/cputable.h> #include ...
Linux kernel'inde 'arch/powerpc/kernel/fpu' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * FPU support code, moved here from head.S so that it can be used * by chips which use other head-whatever.S files. * * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu> * Copyright (C...
Linux kernel'inin 'arch/powerpc/kernel/setup_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * * Common boot and setup code. * * Copyright (C) 2001 PPC64 Team, IBM Corp */ #include <linux/export.h> #include <linux/string.h> #include <linux/sched.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/reboot.h> #include <linux/delay.h> #in...
Linux kernel'inin 'arch/powerpc/kernel/pci_32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Common pmac/prep/chrp pci routines. -- Cort */ #include <linux/kernel.h> #include <linux/pci.h> #include <linux/delay.h> #include <linux/string.h> #include <linux/init.h> #include <linux/capability.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux...
Linux kernel'inin 'arch/powerpc/kernel/dbell' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Author: Kumar Gala <galak@kernel.crashing.org> * * Copyright 2009 Freescale Semiconductor Inc. */ #include <linux/stddef.h> #include <linux/kernel.h> #include <linux/smp.h> #include <linux/threads.h> #include <linux/hardirq.h> #include <asm/dbell.h> #include ...
Linux kernel'inin 'arch/powerpc/kernel/security' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ // // Security related flags and so on. // // Copyright 2018, Michael Ellerman, IBM Corporation. #include <linux/cpu.h> #include <linux/kernel.h> #include <linux/device.h> #include <linux/memblock.h> #include <linux/nospec.h> #include <linux/prctl.h> #include <linux/seq_buf.h>...
Linux kernel'inde 'arch/powerpc/kernel/interrupt_64' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly #include <asm/asm-offsets.h> #include <asm/bug.h> #ifdef CONFIG_PPC_BOOK3S #include <asm/exception-64s.h> #else #include <asm/exception-64e.h> #endif #include <asm/feature-fixups.h> #include <asm/head-64.h> #include <asm/hw_irq.h> #include <asm/kup.h> #include <asm/mmu.h> #include <asm/ppc_asm.h> #include <...
Linux kernel'inin 'arch/powerpc/kernel/secvar-ops' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019 IBM Corporation * Author: Nayna Jain * * This file initializes secvar operations for PowerPC Secureboot */ #include <linux/cache.h> #include <asm/secvar.h> #include <asm/bug.h> const struct secvar_operations *secvar_ops __ro_after_init = NULL; int...
Linux kernel'inin 'arch/powerpc/kernel/swsusp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Common powerpc suspend code for 32 and 64 bits * * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> */ #include <linux/sched.h> #include <linux/suspend.h> #include <asm/current.h> #include <asm/mmu_context.h> #include <asm/switch_to.h> void save_proce...
Linux kernel'inin 'arch/powerpc/kernel/smp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * SMP support for ppc. * * Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great * deal of code from the sparc and intel versions. * * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu> * * PowerPC-64 Support added by Dave Engebretsen, Peter Bergner, and ...
Linux kernel'inin 'arch/powerpc/kernel/mce' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Machine check exception handling. * * Copyright 2013 IBM Corporation * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> */ #undef DEBUG #define pr_fmt(fmt) "mce: " fmt #include <linux/hardirq.h> #include <linux/types.h> #include <linux/ptrace.h> #includ...
Linux kernel'inde 'arch/powerpc/kernel/head_8xx' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu> * Low-level exception handlers and MMU support * rewritten by...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/cpu_specs_85xx' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) */ #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ PPC_FEATURE_BOOKE) static struct cpu_spec cpu_specs[] __initdata = { { /* e500 */ .pvr_mask = 0xffff0000, .pvr...
Linux kernel'inin 'arch/powerpc/kernel/eeh' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright IBM Corporation 2001, 2005, 2006 * Copyright Dave Engebretsen & Todd Inglett 2001 * Copyright Linas Vepstas 2005, 2006 * Copyright 2001-2012 IBM Corporation. * * Please address comments and feedback to Linas Vepstas <linas@austin.ibm.com> */ #incl...
Linux kernel'inde 'arch/powerpc/kernel/epapr_hcalls' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2012 Freescale Semiconductor, Inc. */ #include <linux/export.h> #include <linux/threads.h> #include <asm/epapr_hcalls.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/cputable.h> #include <asm/thread_info.h> #include <asm/ppc_a...
Linux kernel'inin 'arch/powerpc/kernel/pci-common' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Contains common pci routines for ALL ppc platform * (based on pci_32.c and pci_64.c) * * Port for PPC64 David Engebretsen, IBM Corp. * Contains common pci routines for ppc64 platform, pSeries and iSeries brands. * * Copyright (C) 2003 Anton Blanchard <anton@...
Linux kernel'inde 'arch/powerpc/kernel/cpu_setup_6xx' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains low level CPU setup functions. * Copyright (C) 2003 Benjamin Herrenschmidt (benh@kernel.crashing.org) */ #include <linux/linkage.h> #include <asm/processor.h> #include <asm/page.h> #include <asm/cputable.h> #include <asm/ppc_asm...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/cpu_specs_47x' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) */ #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ PPC_FEATURE_BOOKE) static struct cpu_spec cpu_specs[] __initdata = { { /* 476 DD2 core */ .pvr_mask = 0xffffffff...
Linux kernel'inin 'arch/powerpc/kernel/secvar-sysfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2019 IBM Corporation <nayna@linux.ibm.com> * * This code exposes secure variables to user via sysfs */ #define pr_fmt(fmt) "secvar-sysfs: "fmt #include <linux/slab.h> #include <linux/compat.h> #include <linux/string.h> #include <linux/of.h> #include <as...
Linux kernel'inde 'arch/powerpc/kernel/tm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Transactional memory support routines to reclaim and recheckpoint * transactional process state. * * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation. */ #include <linux/export.h> #include <asm/asm-offsets.h> #include <asm/ppc_asm.h> #include <as...
Linux kernel'inin 'arch/powerpc/kernel/msi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2006-2007, Michael Ellerman, IBM Corporation. */ #include <linux/kernel.h> #include <linux/msi.h> #include <linux/pci.h> #include <asm/machdep.h> int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) { struct pci_controller *phb = pci_bus...
Linux kernel'inin 'arch/powerpc/kernel/watchdog' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Watchdog support on powerpc systems. * * Copyright 2017, IBM Corporation. * * This uses code from arch/sparc/kernel/nmi.c and kernel/watchdog.c */ #define pr_fmt(fmt) "watchdog: " fmt #include <linux/kernel.h> #include <linux/param.h> #include <linux/init.h> #includ...
Linux kernel'inde 'arch/powerpc/kernel/idle_85xx' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved. * Dave Liu <daveliu@freescale.com> * copy from idle_6xx.S and modify for e500 based processor, * implement the power_save function in idle. */ #include <linux/threads.h> #include ...
Linux kernel'inin 'arch/powerpc/kernel/traps' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Copyright 2007-2010 Freescale Semiconductor, Inc. * * Modified by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras (paulus@samba.org) */ /* * This file handles the architecture-dependent parts ...
Linux kernel'inin 'arch/powerpc/kernel/prom_init' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Procedures for interfacing to Open Firmware. * * Paul Mackerras August 1996. * Copyright (C) 1996-2005 Paul Mackerras. * * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. * {engebret|bergner}@us.ibm.com */ #undef DEBUG_PROM /* we ca...
Linux kernel'inin 'arch/powerpc/kernel/fadump' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Firmware Assisted dump: A robust mechanism to get reliable kernel crash * dump with assistance from firmware. This approach does not use kexec, * instead firmware assists in booting the kdump kernel while preserving * memory contents. The most of the code imple...
Linux işletim sistemi çekirdeği için 'arch/powerpc/kernel/cpu_specs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifdef CONFIG_PPC_47x #include "cpu_specs_47x.h" #elif defined(CONFIG_44x) #include "cpu_specs_44x.h" #endif #ifdef CONFIG_PPC_8xx #include "cpu_specs_8xx.h" #endif #ifdef CONFIG_PPC_E500MC #include "cpu_specs_e500mc.h" #elif defined(CONFIG_PPC_85xx) #include "cpu...
Linux kernel'inde 'arch/powerpc/kernel/reloc_64' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Code to process dynamic relocations in the kernel. * * Copyright 2008 Paul Mackerras, IBM Corp. */ #include <asm/ppc_asm.h> RELA = 7 RELASZ = 8 RELAENT = 9 R_PPC64_RELATIVE = 22 R_PPC64_UADDR64 = 43 /* * r3 = desired final address of kernel */ _G...
Linux kernel'inde 'arch/powerpc/kernel/cpu_setup_pa6t' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2006-2007 PA Semi, Inc * * Maintained by: Olof Johansson <olof@lixom.net> */ #include <asm/processor.h> #include <asm/page.h> #include <asm/cputable.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/cache.h> /* Right n...
Linux kernel'inin 'arch/powerpc/kernel/io' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * I/O string operations * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Copyright (C) 2006 IBM Corporation * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.co...
Linux kernel'inde 'arch/powerpc/kernel/idle_64e' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2010 IBM Corp, Benjamin Herrenschmidt <benh@kernel.crashing.org> * * Generic idle routine for 64 bits e500 processors */ #include <linux/threads.h> #include <asm/reg.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/ppc...
Linux kernel'inin 'arch/powerpc/kernel/kdebugfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/debugfs.h> #include <linux/export.h> #include <linux/init.h> struct dentry *arch_debugfs_dir; EXPORT_SYMBOL(arch_debugfs_dir); static int __init arch_kdebugfs_init(void) { arch_debugfs_dir = debugfs_create_dir("powerpc", NULL); return 0; } arch_initcall(arch_...
Linux kernel'inin 'arch/powerpc/kernel/pci-hotplug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Derived from "arch/powerpc/platforms/pseries/pci_dlpar.c" * * Copyright (C) 2003 Linda Xie <lxie@us.ibm.com> * Copyright (C) 2005 International Business Machines * * Updates, 2005, John Rose <johnrose@austin.ibm.com> * Updates, 2005, Linas Vepstas <linas@aus...
Linux kernel'inin 'arch/powerpc/kernel/prom_parse' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #undef DEBUG #include <linux/kernel.h> #include <linux/string.h> #include <linux/ioport.h> #include <linux/etherdevice.h> #include <linux/of_address.h> #include <asm/prom.h> void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, unsigned long *busno, un...
Linux kernel'inin 'arch/powerpc/kernel/tau_6xx' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * temp.c Thermal management for cpu's with Thermal Assist Units * * Written by Troy Benjegerdes <hozer@drgw.net> * * TODO: * dynamic power management to limit peak CPU temp (using ICTC) * calibration??? * * Silly, crazy ideas: use cpu load (from scheduler) and ICTC t...
Linux kernel'inin 'arch/powerpc/kernel/secure_boot' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2019 IBM Corporation * Author: Nayna Jain */ #include <linux/types.h> #include <linux/of.h> #include <linux/secure_boot.h> #include <linux/string_choices.h> #include <asm/secure_boot.h> static struct device_node *get_ppc_fw_sb_node(void) { static const st...
Linux kernel'inin 'arch/powerpc/kernel/interrupt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/context_tracking.h> #include <linux/err.h> #include <linux/compat.h> #include <linux/rseq.h> #include <linux/sched/debug.h> /* for show_regs */ #include <asm/kup.h> #include <asm/cputime.h> #include <asm/hw_irq.h> #include <asm/interrupt.h> #include <a...
Linux kernel'inde 'arch/powerpc/kernel/misc' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains miscellaneous low-level functions. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * * PPC64 updates by Dave Engebretsen (engebret@us.ibm.co...
Linux kernel'inin 'arch/powerpc/kernel/iomap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ppc64 "iomap" interface implementation. * * (C) Copyright 2004 Linus Torvalds */ #include <linux/pci.h> #include <linux/mm.h> #include <linux/export.h> #include <asm/io.h> #include <asm/pci-bridge.h> #include <asm/isa-bridge.h> void __iomem *ioport_map(unsigned long po...
Linux kernel'inin 'arch/powerpc/kernel/rtas' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * * Procedures for interfacing to the RTAS on CHRP machines. * * Peter Bergner, IBM March 2001. * Copyright (C) 2001 IBM. */ #define pr_fmt(fmt) "rtas: " fmt #include <linux/bsearch.h> #include <linux/capability.h> #include <linux/delay.h> #include <linux/exp...
Linux kernel'inin 'arch/powerpc/kernel/process' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Derived from "arch/i386/kernel/process.c" * Copyright (C) 1995 Linus Torvalds * * Updated and modified by Cort Dougan (cort@cs.nmt.edu) and * Paul Mackerras (paulus@cs.anu.edu.au) * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@lin...
Linux kernel'inin 'arch/powerpc/kernel/align' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* align.c - handle alignment exceptions for the Power PC. * * Copyright (c) 1996 Paul Mackerras <paulus@cs.anu.edu.au> * Copyright (c) 1998-1999 TiVo, Inc. * PowerPC 403GCX modifications. * Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu> * PowerPC 403G...
Linux kernel'inde 'arch/powerpc/kernel/cpu_setup_44x' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains low level CPU setup functions. * Valentine Barshak <vbarshak@ru.mvista.com> * MontaVista Software, Inc (c) 2007 * * Based on cpu_setup_6xx code by * Benjamin Herrenschmidt <benh@kernel.crashing.org> */ #include <asm/processor.h>...
Linux kernel'inin 'arch/powerpc/kernel/eeh_sysfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Sysfs entries for PCI Error Recovery for PAPR-compliant platform. * Copyright IBM Corporation 2007 * Copyright Linas Vepstas <linas@austin.ibm.com> 2007 * * Send comments and feedback to Linas Vepstas <linas@austin.ibm.com> */ #include <linux/of.h> #include <...
Linux kernel'inin 'arch/powerpc/kernel/nvram_64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * c 2001 PPC 64 Team, IBM Corp * * /dev/nvram driver for PPC64 */ #include <linux/types.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/miscdevice.h> #include <linux/fcntl.h> #include <linux/nvram.h> #include <linux/init.h> #include <linux/sla...
Linux kernel'inin 'arch/powerpc/kernel/legacy_serial' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/serial.h> #include <linux/serial_8250.h> #include <linux/serial_core.h> #include <linux/console.h> #include <linux/pci.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/serial_reg.h> #includ...
Linux kernel'inin 'arch/powerpc/kernel/dexcr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/capability.h> #include <linux/cpu.h> #include <linux/init.h> #include <linux/prctl.h> #include <linux/sched.h> #include <asm/cpu_has_feature.h> #include <asm/cputable.h> #include <asm/processor.h> #include <asm/reg.h> static int __init init_task_dexcr...
Linux kernel'inin 'arch/powerpc/kernel/udbg_16550' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * udbg for NS16550 compatible serial ports * * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp */ #include <linux/types.h> #include <asm/udbg.h> #include <asm/io.h> #include <asm/early_ioremap.h> extern u8 real_readb(volatile u8 __iomem *addr); extern void real_w...
Linux kernel'inin 'arch/powerpc/kernel/jump_label' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2010 Michael Ellerman, IBM Corp. */ #include <linux/kernel.h> #include <linux/jump_label.h> #include <asm/text-patching.h> #include <asm/inst.h> void arch_jump_label_transform(struct jump_entry *entry, enum jump_label_type type) { u32 *addr...
Linux kernel'inin 'arch/powerpc/kernel/systbl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains the table of syscall-handling functions. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.co...
Linux kernel'inde 'arch/powerpc/kernel/head_book3s_32' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu> * Adapted for Power Macintosh by Paul Mackerras. * Low-lev...
Linux kernel'inde 'arch/powerpc/kernel/vdso/datapage' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Access to the shared data page by the vDSO & syscall map * * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org), IBM Corp. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/unistd.h> ...
Linux kernel'inde 'arch/powerpc/kernel/vdso/getrandom' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Userland implementation of getrandom() for processes * for use in the vDSO * * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/vdso.h> #include <a...
Linux kernel'inde 'arch/powerpc/kernel/vdso/cacheflush' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * vDSO provided cache flush routines * * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org), * IBM Corp. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/vdso.h> #include <asm/vdso_datapage.h> #...
Linux kernel'inde 'arch/powerpc/kernel/vdso/note' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/uts.h> #include <linux/version.h> #include <linux/build-salt.h> #define ASM_ELF_NOTE_BEGIN(name, flags, vendor, type) \ .section name, f...
Linux kernel'inde 'arch/powerpc/kernel/vdso/sigtramp32' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Signal trampolines for 32 bits processes in a ppc64 kernel for * use in the vDSO * * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org), IBM Corp. * Copyright (C) 2004 Alan Modra (amodra@au.ibm.com)), IBM Corp. */ #include <asm/pr...
Linux kernel'inde 'arch/powerpc/kernel/vdso/vdso64.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * This is the infamous ld script for the 64 bits vdso * library */ #include <asm/vdso.h> #include <asm/page.h> #include <asm-generic/vmlinux.lds.h> #include <vdso/datapage.h> #ifdef __LITTLE_ENDIAN__ OUTPUT_FORMAT("elf64-powerpcle", "elf64-powerpcle", "elf64-pow...
Linux kernel'inde 'arch/powerpc/kernel/vdso/sigtramp64' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Signal trampoline for 64 bits processes in a ppc64 kernel for * use in the vDSO * * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org), IBM Corp. * Copyright (C) 2004 Alan Modra (amodra@au.ibm.com)), IBM Corp. */ #include <asm/cac...
Linux kernel'inde 'arch/powerpc/kernel/vdso/getcpu' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/ppc_asm.h> #include <asm/vdso.h> .text /* * Exact prototype of getcpu * * int __kernel_getcpu(unsigned *cpu, unsigned *node); * */ #if define...
Linux kernel'inin 'arch/powerpc/kernel/vdso/vgetrandom' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Powerpc userspace implementation of getrandom() * * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France */ #include <linux/time.h> #include <linux/types.h> ssize_t __c_kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *o...
Linux kernel'inin 'arch/powerpc/kernel/vdso/vgettimeofday' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Powerpc userspace implementations of gettimeofday() and similar. */ #include <linux/time.h> #include <linux/types.h> #ifdef __powerpc64__ int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts, const struct vdso_time_data *vd) { return __cvds...
Linux kernel'inde 'arch/powerpc/kernel/vdso/gettimeofday' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Userland implementation of gettimeofday() for processes * for use in the vDSO * * Copyright (C) 2004 Benjamin Herrenschmuidt (benh@kernel.crashing.org, * IBM Corp. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <a...
Linux kernel'inde 'arch/powerpc/kernel/vdso/vgetrandom-chacha' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2024 Christophe Leroy <christophe.leroy@csgroup.eu>, CS GROUP France */ #include <linux/linkage.h> #include <asm/ppc_asm.h> #define dst_bytes r3 #define key r4 #define counter r5 #define nblocks r6 #define idx_r0 r0 #define val4 r4 #defin...
Linux kernel'inde 'arch/powerpc/kernel/vdso/vdso32.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * This is the infamous ld script for the 32 bits vdso * library */ #include <asm/vdso.h> #include <asm/page.h> #include <asm-generic/vmlinux.lds.h> #include <vdso/datapage.h> #ifdef __LITTLE_ENDIAN__ OUTPUT_FORMAT("elf32-powerpcle", "elf32-powerpcle", "elf32-pow...
Linux kernel'inin 'arch/powerpc/kernel/trace/trace_clock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * * Copyright (C) 2015 Naveen N. Rao, IBM Corporation */ #include <asm/trace_clock.h> #include <asm/time.h> u64 notrace trace_clock_ppc_tb(void) { return get_tb(); } ```
Linux kernel'inde 'arch/powerpc/kernel/trace/ftrace_64_pg_entry' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Split from ftrace_64.S */ #include <linux/export.h> #include <linux/magic.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/ftrace.h> #include <asm/ppc-opcode.h> _GLOBAL_TOC(ftrace_caller) lbz r3, PACA_FTRACE_ENABLED(r13) cmpdi ...
Linux kernel'inin 'arch/powerpc/kernel/trace/ftrace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Code for replacing ftrace calls with jumps. * * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> * * Thanks goes out to P.A. Semi, Inc for supplying me with a PPC64 box. * * Added function graph tracer code, taken from x86 that was written * by Frederic ...
Linux kernel'inin 'arch/powerpc/kernel/trace/ftrace_64_pg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Code for replacing ftrace calls with jumps. * * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> * * Thanks goes out to P.A. Semi, Inc for supplying me with a PPC64 box. * * Added function graph tracer code, taken from x86 that was written * by Frederic ...
Linux kernel'inde 'arch/powerpc/kernel/trace/ftrace_entry' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Split from ftrace_64.S */ #include <linux/export.h> #include <linux/magic.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/ftrace.h> #include <asm/ppc-opcode.h> #include <asm/thread_info.h> #include <asm/bug.h> #include <asm/ptrac...
Linux kernel'inin 'arch/powerpc/kernel/ptrace/ptrace-fpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/regset.h> #include <asm/switch_to.h> #include "ptrace-decl.h" int ptrace_get_fpr(struct task_struct *child, int index, unsigned long *data) { #ifdef CONFIG_PPC_FPU_REGS unsigned int fpidx = index - PT_FPR0; #endif if (index > PT_FPSCR) return -E...
Linux kernel'inin 'arch/powerpc/kernel/ptrace/ptrace-vsx' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/regset.h> #include <asm/switch_to.h> #include "ptrace-decl.h" /* * Regardless of transactions, 'fp_state' holds the current running * value of all FPR registers and 'ckfp_state' holds the last checkpointed * value of all FPR registers for the curr...
Linux kernel'inin 'arch/powerpc/kernel/ptrace/ptrace-altivec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/regset.h> #include <linux/elf.h> #include <asm/switch_to.h> #include "ptrace-decl.h" /* * Get/set all the altivec registers vr0..vr31, vscr, vrsave, in one go. * The transfer totals 34 quadword. Quadwords 0-31 contain the * corresponding vector r...
Linux kernel'inin 'arch/powerpc/kernel/ptrace/ptrace32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * ptrace for 32-bit processes running on a 64-bit kernel. * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/m68k/kernel/ptrace.c" * Copyright (C) 1994 by Hamish Macdonald * Taken from linux/kernel/ptrace.c and modified for M680x0. * linux/kernel...
Linux kernel'inin 'arch/powerpc/kernel/ptrace/ptrace' 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/m68k/kernel/ptrace.c" * Copyright (C) 1994 by Hamish Macdonald * Taken from linux/kernel/ptrace.c and modified for M680x0. * linux/kernel/ptrace.c is by R...