data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
⌀
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
⌀
metadata
dict
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * atomic64_t for 386/486 * * Copyright © 2010 Luca Barbieri */ #include <linux/linkage.h> #include <asm/alternative.h> /* if you want SMP support, implement these with real spinlocks */ .macro IRQ_SAVE reg pushfl cli .endm .macro IRQ_RESTORE reg popfl .endm ...
arch/x86/lib/atomic64_386_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * atomic64_t for 586+ * * Copyright © 2010 Luca Barbieri */ #include <linux/linkage.h> #include <asm/alternative.h> .macro read64 reg movl %ebx, %eax movl %ecx, %edx /* we need LOCK_PREFIX since otherwise cmpxchg8b always does the write */ LOCK_PREFIX cmpxch...
arch/x86/lib/atomic64_cx8_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/unwind_hints.h> #include <asm/nospec-branch.h> /* * Notably, the FineIBT preamble calling these will have ZF set and eax zero. * * The very last element is in fact larger than 32 bytes, but since its the * last element, this does not ...
arch/x86/lib/bhi.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/smp.h> #include <linux/export.h> #include <linux/kvm_types.h> static void __wbinvd(void *dummy) { wbinvd(); } void wbinvd_on_cpu(int cpu) { smp_call_function_single(cpu, __wbinvd, NULL, 1); } EXPORT_SYMBOL_FOR_KVM(wbinvd_on_cpu); void wbinvd_on_all_cpus(void) { ...
arch/x86/lib/cache-smp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * IP/TCP/UDP checksumming routines * * Authors: Jorge Cwik, <j...
arch/x86/lib/checksum_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/cfi_types.h> #include <linux/objtool.h> #include <asm/asm.h> /* * Zero page aligned region. * %rdi - dest * %rcx - length */ SYM_TYPED_FUNC_START(__clear_pages_unrolled) shrq $6, %rcx .p2align 4 .Ll...
arch/x86/lib/clear_page_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Misc librarized functions for cmdline poking. */ #include <linux/kernel.h> #include <linux/string.h> #include <linux/ctype.h> #include <asm/setup.h> #include <asm/cmdline.h> #include <asm/bug.h> static inline int myisspace(u8 c) { return c <= ' '; /* Close enough ap...
arch/x86/lib/cmdline.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/linkage.h> #include <asm/percpu.h> #include <asm/processor-flags.h> .text /* * Emulate 'cmpxchg16b %gs:(%rsi)' * * Inputs: * %rsi : memory location to compare * %rax : low 64 bits of old value * %rdx : high 64 bits of old value * %rbx : low 64 bits of...
arch/x86/lib/cmpxchg16b_emu.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/percpu.h> #include <asm/processor-flags.h> .text #ifndef CONFIG_X86_CX8 /* * Emulate 'cmpxchg8b (%esi)' on UP * * Inputs: * %esi : memory location to compare * %eax : low 32 bits of old value * %edx ...
arch/x86/lib/cmpxchg8b_emu.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2016-2020 Intel Corporation. All rights reserved. */ #include <linux/jump_label.h> #include <linux/uaccess.h> #include <linux/export.h> #include <linux/instrumented.h> #include <linux/string.h> #include <linux/types.h> #include <asm/mce.h> #ifdef CONFIG_X86_MCE sta...
arch/x86/lib/copy_mc.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright(c) 2016-2020 Intel Corporation. All rights reserved. */ #include <linux/linkage.h> #include <asm/asm.h> #ifndef CONFIG_UML #ifdef CONFIG_X86_MCE /* * copy_mc_fragile - copy memory with indication if an exception / fault happened * * The 'fragile' version i...
arch/x86/lib/copy_mc_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* Written 2003 by Andi Kleen, based on a kernel by Evandro Menezes */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> /* * Some CPUs run faster using the string copy instructions (sane ...
arch/x86/lib/copy_page_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2008 Vitaly Mayatskikh <vmayatsk@redhat.com> * Copyright 2002 Andi Kleen, SuSE Labs. * * Functions to copy from and to user space. */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/cfi_types.h> #include <linux/objtool.h> #include <as...
arch/x86/lib/copy_user_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2023 Linus Torvalds <torvalds@linux-foundation.org> */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/objtool.h> #include <asm/asm.h> /* * copy_user_nocache - Uncached memory copy with exception handling * * This copies from user sp...
arch/x86/lib/copy_user_uncached_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/types.h> #include <linux/export.h> #include <asm/cpu.h> unsigned int x86_family(unsigned int sig) { unsigned int x86; x86 = (sig >> 8) & 0xf; if (x86 == 0xf) x86 += (sig >> 20) & 0xff; return x86; } EXPORT_SYMBOL_GPL(x86_family); unsigned int x86_model...
arch/x86/lib/cpu.c
null
null
null
null
null
source
linux
/* * Copyright 2002, 2003 Andi Kleen, SuSE Labs. * * 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. No warranty for anything given at all. */ #include <linux/linkage.h> #include <asm/errno.h> #in...
arch/x86/lib/csum-copy_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/x86_64/lib/csum-partial.c * * This file contains network checksum routines that are better done * in an architecture-specific manner due to speed. */ #include <linux/compiler.h> #include <linux/export.h> #include <asm/checksum.h> #include <asm/word-at-a-time.h> stati...
arch/x86/lib/csum-partial_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2002, 2003 Andi Kleen, SuSE Labs. * * Wrappers of assembly checksum functions for x86-64. */ #include <asm/checksum.h> #include <linux/export.h> #include <linux/uaccess.h> #include <asm/smap.h> /** * csum_and_copy_from_user - Copy and checksum from user spac...
arch/x86/lib/csum-wrappers_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Precise Delay Loops for i386 * * Copyright (C) 1993 Linus Torvalds * Copyright (C) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz> * Copyright (C) 2008 Jiri Hladky <hladky _dot_ jiri _at_ gmail _dot_ com> * * The __delay function must _NOT_ be inlined as its execution tim...
arch/x86/lib/delay.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/linkage.h> #include <linux/error-injection.h> #include <linux/kprobes.h> #include <linux/objtool.h> asmlinkage void just_return_func(void); asm( ".text\n" ".type just_return_func, @function\n" ".globl just_return_func\n" ASM_FUNC_ALIGN "just_return_func:\n" ...
arch/x86/lib/error-inject.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * __get_user functions. * * (C) Copyright 1998 Linus Torvalds * (C) Copyright 2005 Andi Kleen * (C) Copyright 2008 Glauber Costa * * These functions have a non-standard call interface * to make them more efficient, especially as they * return an error value in addition...
arch/x86/lib/getuser.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/objtool.h> #include <asm/asm.h> /* * unsigned int __sw_hweight32(unsigned int w) * %rdi: w */ SYM_FUNC_START(__sw_hweight32) ANNOTATE_NOENDBR #ifdef CONFIG_X86_64 movl %edi, %eax # w #endif __ASM_SIZE...
arch/x86/lib/hweight.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * x86 instruction attribute tables * * Written by Masami Hiramatsu <mhiramat@redhat.com> */ #include <asm/insn.h> /* __ignore_sync_check__ */ /* Attribute tables are generated from opcode map */ #include "inat-tables.c" /* Attribute search APIs */ insn_attr_t inat_g...
arch/x86/lib/inat.c
null
null
null
null
null
source
linux
/* * Utility functions for x86 operand and address decoding * * Copyright (C) Intel Corporation 2017 */ #include <linux/kernel.h> #include <linux/string.h> #include <linux/ratelimit.h> #include <linux/mmu_context.h> #include <asm/desc_defs.h> #include <asm/desc.h> #include <asm/inat.h> #include <asm/insn.h> #includ...
arch/x86/lib/insn-eval.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * x86 instruction analysis * * Copyright (C) IBM Corporation, 2002, 2004, 2009 */ #include <linux/kernel.h> #ifdef __KERNEL__ #include <linux/string.h> #else #include <string.h> #endif #include <asm/inat.h> /*__ignore_sync_check__ */ #include <asm/insn.h> /* __ignore...
arch/x86/lib/insn.c
null
null
null
null
null
source
linux
#include <linux/string.h> #include <linux/module.h> #include <linux/io.h> #include <linux/kmsan-checks.h> #define movs(type,to,from) \ asm volatile("movs" type:"=&D" (to), "=&S" (from):"0" (to), "1" (from):"memory") /* Originally from i386/string.h */ static __always_inline void rep_movs(void *to, const void *from, ...
arch/x86/lib/iomem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Entropy functions used on early boot for KASLR base and memory * randomization. The base randomization is done in the compressed * kernel and memory randomization is done early when the regular * kernel starts. This file is included in the compressed kernel and * normally l...
arch/x86/lib/kaslr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/string.h> #include <linux/export.h> #undef memcpy #undef memset #undef memmove __visible void *memcpy(void *to, const void *from, size_t n) { return __memcpy(to, from, n); } EXPORT_SYMBOL(memcpy); __visible void *memset(void *s, int c, size_t count) { return __me...
arch/x86/lib/memcpy_32.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright 2002 Andi Kleen */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/errno.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> .section .noinstr.text, "ax" /* * memcpy - Copy a memory block. * * Input: ...
arch/x86/lib/memcpy_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> SYM_FUNC_START(memmove) /* * void *memmove(void *dest_in, const void *src_in, size_t n) * -mregparm=3 passes these in registers: * dest_in: %eax * src_in: %edx * n: %ecx * See also: arch/x86/entry/calling.h for descripti...
arch/x86/lib/memmove_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Normally compiler builtins are used, but sometimes the compiler calls out * of line code. Based on asm-i386/string.h. * * This assembly file is re-written from memmove_64.c file. * - Copyright 2011 Fenghua Yu <fenghua.yu@intel.com> */ #include <linux/export.h> #include ...
arch/x86/lib/memmove_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright 2002 Andi Kleen, SuSE Labs */ #include <linux/export.h> #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> .section .noinstr.text, "ax" /* * ISO C memset - set a memory block to a byte value. This func...
arch/x86/lib/memset_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <asm/misc.h> /* * Count the digits of @val including a possible sign. * * (Typed on and submitted from hpa's mobile phone.) */ int num_digits(int val) { long long m = 10; int d = 1; if (val < 0) { d++; val = -val; } while (val >= m) { m *= 10; d++; } re...
arch/x86/lib/misc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <asm/msr.h> EXPORT_SYMBOL(rdmsr_safe_regs); EXPORT_SYMBOL(wrmsr_safe_regs);
arch/x86/lib/msr-reg-export.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <linux/errno.h> #include <linux/cfi_types.h> #include <asm/asm.h> #include <asm/msr.h> #ifdef CONFIG_X86_64 /* * int {rdmsr,wrmsr}_safe_regs(u32 gprs[8]); * * reg layout: u32 gprs[eax, ecx, edx, ebx, esp, ebp, esi, edi] * */ .macro op_safe...
arch/x86/lib/msr-reg.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <linux/preempt.h> #include <linux/smp.h> #include <linux/completion.h> #include <asm/msr.h> static void __rdmsr_on_cpu(void *info) { struct msr_info *rv = info; struct msr *reg; if (rv->msrs) reg = this_cpu_ptr(rv->msrs); else reg = &rv->r...
arch/x86/lib/msr-smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <linux/kvm_types.h> #include <linux/percpu.h> #include <linux/preempt.h> #include <asm/msr.h> #define CREATE_TRACE_POINTS #include <asm/msr-trace.h> struct msr __percpu *msrs_alloc(void) { struct msr __percpu *msrs = NULL; msrs = alloc_percpu(st...
arch/x86/lib/msr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Support for the configuration register space at port I/O locations * 0x22 and 0x23 variously used by PC architectures, e.g. the MP Spec, * Cyrix CPUs, numerous chipsets. As the space is indirectly addressed * it may have to be protected with a spinlock, depending on the con...
arch/x86/lib/pc-conf-reg.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * __put_user functions. * * (C) Copyright 2005 Linus Torvalds * (C) Copyright 2005 Andi Kleen * (C) Copyright 2008 Glauber Costa * * These functions have a non-standard call interface * to make them more efficient, especially as they * return an error value in addition...
arch/x86/lib/putuser.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/stringify.h> #include <linux/linkage.h> #include <asm/dwarf2.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> #include <asm/asm-offsets.h> #include <asm/nospec-branch.h> #include <asm/unwind_hints.h> #include <asm/percpu.h> #i...
arch/x86/lib/retpoline.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Most of the string-functions are rather heavily hand-optimized, * see especially strsep,strstr,str[c]spn. They should work, but are not * very easy to understand. Everything is done entirely within the register * set, making the functions fast and clean. String instructions ...
arch/x86/lib/string_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/string.h> #include <linux/export.h> char *strstr(const char *cs, const char *ct) { int d0, d1; register char *__res; __asm__ __volatile__( "movl %6,%%edi\n\t" "repne scasb\n\t" "notl %%ecx\n\t" "decl %%ecx\n\t" /* NOTE! This also sets Z if searchstring='' */ "mo...
arch/x86/lib/strstr_32.c
null
null
null
null
null
source
linux
/* * User address space access functions. * * For licencing details see kernel-base/COPYING */ #include <linux/uaccess.h> #include <linux/export.h> #include <linux/instrumented.h> #include <asm/tlbflush.h> /** * copy_from_user_nmi - NMI safe copy from user * @to: Pointer to the destination buffer * @from: P...
arch/x86/lib/usercopy.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * User address space access functions. * The non inlined parts of asm-i386/uaccess.h are here. * * Copyright 1997 Andi Kleen <ak@muc.de> * Copyright 1997 Linus Torvalds */ #include <linux/export.h> #include <linux/uaccess.h> #include <asm/asm.h> #ifdef CONFIG_X86_INTEL_USER...
arch/x86/lib/usercopy_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * User address space access functions. * * Copyright 1997 Andi Kleen <ak@muc.de> * Copyright 1997 Linus Torvalds * Copyright 2002 Andi Kleen <ak@suse.de> */ #include <linux/export.h> #include <linux/uaccess.h> #include <linux/highmem.h> #include <linux/libnvdimm.h> /*...
arch/x86/lib/usercopy_64.c
null
null
null
null
null
source
linux
# x86 Opcode Maps # # This is (mostly) based on following documentations. # - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2C # (#326018-047US, June 2013) # #<Opcode maps> # Table: table-name # Referrer: escaped-name # AVXcode: avx-code # opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra...
arch/x86/lib/x86-opcode-map.txt
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | control_w.h | | | | Copyright (C) 1992,1993 ...
arch/x86/math-emu/control_w.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "div_Xsig.S" /*---------------------------------------------------------------------------+ | div_Xsig.S | | | | Division subroutine f...
arch/x86/math-emu/div_Xsig.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "div_small.S" /*---------------------------------------------------------------------------+ | div_small.S | | | | Divide a 64 bit inte...
arch/x86/math-emu/div_small.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | errors.c | | | | The error handling functions for wm-FPU-emu...
arch/x86/math-emu/errors.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | exception.h | | | | Copyright (C) 1992 W. Metzenthen, 22 P...
arch/x86/math-emu/exception.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_arith.c | | | | Code to implement the FPU register/register ...
arch/x86/math-emu/fpu_arith.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | fpu_asm.h | | | | Copyright (C) 1992,1995,1997 ...
arch/x86/math-emu/fpu_asm.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_aux.c | | | | Code to implement some of the FPU auxiliary ...
arch/x86/math-emu/fpu_aux.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | fpu_emu.h | | | | Copyright (C) 1992,1993,1994,1997 ...
arch/x86/math-emu/fpu_emu.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_entry.c | | | | The entry functions for wm-FPU-emu ...
arch/x86/math-emu/fpu_entry.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_etc.c | | | | Implement a few FPU instructions. ...
arch/x86/math-emu/fpu_etc.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _FPU_PROTO_H #define _FPU_PROTO_H /* errors.c */ extern void FPU_illegal(void); extern void FPU_printall(void); asmlinkage void FPU_exception(int n); extern int real_1op_NaN(FPU_REG *a); extern int real_2op_NaN(FPU_REG const *b, u_char tagb, int deststnr, FPU_REG const...
arch/x86/math-emu/fpu_proto.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | fpu_system.h | | | | Copyright (C) 1992,1994,1997 ...
arch/x86/math-emu/fpu_system.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_tags.c | | | | Set FPU register tags. ...
arch/x86/math-emu/fpu_tags.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | fpu_trig.c | | | | Implementation of the FPU "transcendental" f...
arch/x86/math-emu/fpu_trig.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | get_address.c | | | | Get the effective address from an FPU instru...
arch/x86/math-emu/get_address.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | load_store.c | | | | This file contains most of the code to inter...
arch/x86/math-emu/load_store.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | mul_Xsig.S | | | | Multiply a 12 byte fixed point number by ...
arch/x86/math-emu/mul_Xsig.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | poly.h | | | | Header file for the FPU-emu poly*.c sour...
arch/x86/math-emu/poly.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | poly_2xm1.c | | | | Function to compute 2^x-1 by a polynomial ap...
arch/x86/math-emu/poly_2xm1.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | poly_atan.c | | | | Compute the arctan of a FPU_REG, using a pol...
arch/x86/math-emu/poly_atan.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | poly_l2.c | | | | Compute the base 2 log of a FPU_REG, using a...
arch/x86/math-emu/poly_l2.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | poly_sin.c | | | | Computation of an approximation of the sin ...
arch/x86/math-emu/poly_sin.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | poly_tan.c | | | | Compute the tan of a FPU_REG, using a polyno...
arch/x86/math-emu/poly_tan.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | polynomial_Xsig.S | | | | Fixed point arithmetic polynomial evaluat...
arch/x86/math-emu/polynom_Xsig.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_add_sub.c | | | | Functions to add or subtract two registers a...
arch/x86/math-emu/reg_add_sub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_compare.c | | | | Compare two floating point registers ...
arch/x86/math-emu/reg_compare.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_constant.c | | | | All of the constant FPU_REGs ...
arch/x86/math-emu/reg_constant.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | reg_constant.h | | | | Copyright (C) 1992 W. Metzenthen, 22 P...
arch/x86/math-emu/reg_constant.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_convert.c | | | | Convert register representation. ...
arch/x86/math-emu/reg_convert.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_divide.c | | | | Divide one FPU_REG by another and put the re...
arch/x86/math-emu/reg_divide.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_ld_str.c | | | | All of the functions which transfer data bet...
arch/x86/math-emu/reg_ld_str.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /*---------------------------------------------------------------------------+ | reg_mul.c | | | | Multiply one FPU_REG by another, put the res...
arch/x86/math-emu/reg_mul.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | reg_norm.S | | | | Copyright (C) 1992,1993,1994,1995,1997 ...
arch/x86/math-emu/reg_norm.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "reg_round.S" /*---------------------------------------------------------------------------+ | reg_round.S | | | | Rounding/truncation/...
arch/x86/math-emu/reg_round.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "reg_u_add.S" /*---------------------------------------------------------------------------+ | reg_u_add.S | | | | Add two valid (TAG_V...
arch/x86/math-emu/reg_u_add.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "reg_u_div.S" /*---------------------------------------------------------------------------+ | reg_u_div.S | | | | Divide one FPU_REG b...
arch/x86/math-emu/reg_u_div.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "reg_u_mul.S" /*---------------------------------------------------------------------------+ | reg_u_mul.S | | | | Core multiplication ...
arch/x86/math-emu/reg_u_mul.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "reg_u_sub.S" /*---------------------------------------------------------------------------+ | reg_u_sub.S | | | | Core floating point ...
arch/x86/math-emu/reg_u_sub.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | round_Xsig.S | | | | Copyright (C) 1992,1993,1994,1995 ...
arch/x86/math-emu/round_Xsig.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "shr_Xsig.S" /*---------------------------------------------------------------------------+ | shr_Xsig.S | | | | 12 byte right shift f...
arch/x86/math-emu/shr_Xsig.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /*---------------------------------------------------------------------------+ | status_w.h | | | | Copyright (C) 1992,1993 ...
arch/x86/math-emu/status_w.h
null
null
null
null
null
source
linux
/*---------------------------------------------------------------------------+ | version.h | | | | | | C...
arch/x86/math-emu/version.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "wm_shrx.S" /*---------------------------------------------------------------------------+ | wm_shrx.S | | | | 64 bit right shift fun...
arch/x86/math-emu/wm_shrx.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .file "wm_sqrt.S" /*---------------------------------------------------------------------------+ | wm_sqrt.S | | | | Fixed point arithmetic...
arch/x86/math-emu/wm_sqrt.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * AMD NUMA support. * Discover the memory map and associated nodes. * * This version reads it directly from the AMD northbridge. * * Copyright 2002,2003 Andi Kleen, SuSE Labs. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/string.h> #include <linux/nod...
arch/x86/mm/amdtopology.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/spinlock.h> #include <linux/percpu.h> #include <linux/kallsyms.h> #include <linux/kcore.h> #include <linux/pgtable.h> #include <asm/cpu_entry_area.h> #include <asm/fixmap.h> #include <asm/desc.h> #include <asm/kasan.h> #include <asm/setup.h> static DEFINE_PER_CPU_P...
arch/x86/mm/cpu_entry_area.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/debugfs.h> #include <linux/efi.h> #include <linux/module.h> #include <linux/seq_file.h> #include <linux/pgtable.h> static int ptdump_show(struct seq_file *m, void *v) { ptdump_walk_pgd_level_debugfs(m, &init_mm, false); return 0; } DEFINE_SHOW_ATTRIBUTE(ptdum...
arch/x86/mm/debug_pagetables.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Debug helper to dump the current kernel pagetables of the system * so that we can see what the various memory ranges are set to. * * (C) Copyright 2008 Intel Corporation * * Author: Arjan van de Ven <arjan@linux.intel.com> */ #include <linux/debugfs.h> #include <lin...
arch/x86/mm/dump_pagetables.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/extable.h> #include <linux/uaccess.h> #include <linux/sched/debug.h> #include <linux/bitfield.h> #include <xen/xen.h> #include <asm/fpu/api.h> #include <asm/fred.h> #include <asm/sev.h> #include <asm/traps.h> #include <asm/kdebug.h> #include <asm/insn-eval.h> #i...
arch/x86/mm/extable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1995 Linus Torvalds * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar */ #include <linux/sched.h> /* test_thread_flag(), ... */ #include <linux/sched/task_stack.h> /* task_stack_*(), ... */ #include <li...
arch/x86/mm/fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * IA-32 Huge TLB Page Support for Kernel. * * Copyright (C) 2002, Rohit Seth <rohit.seth@intel.com> */ #include <linux/init.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/sched/mm.h> #include <linux/hugetlb.h> #include <linux/pagemap.h> #include <linux/err.h> ...
arch/x86/mm/hugetlbpage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Helper routines for building identity mapping page tables. This is * included by both the compressed kernel and the regular kernel. */ static void free_pte(struct x86_mapping_info *info, pmd_t *pmd) { pte_t *pte = pte_offset_kernel(pmd, 0); info->free_pgt_page(pte, info->...
arch/x86/mm/ident_map.c
null
null
null
null
null
source
linux
#include <linux/gfp.h> #include <linux/initrd.h> #include <linux/ioport.h> #include <linux/swap.h> #include <linux/memblock.h> #include <linux/swapfile.h> #include <linux/swapops.h> #include <linux/kmemleak.h> #include <linux/sched/task.h> #include <linux/execmem.h> #include <asm/set_memory.h> #include <asm/cpu_device...
arch/x86/mm/init.c
null
null
null
null
null