repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
alibaba/LVS
3,972
kernel/arch/x86/math-emu/reg_u_add.S
.file "reg_u_add.S" /*---------------------------------------------------------------------------+ | reg_u_add.S | | | | Add two valid (TAG_Valid) FPU_REG numbers, of the same sign...
alibaba/LVS
3,592
kernel/arch/x86/math-emu/reg_norm.S
/*---------------------------------------------------------------------------+ | reg_norm.S | | | | Copyright (C) 1992,1993,1994,1995,1997 | | ...
alibaba/LVS
6,208
kernel/arch/x86/math-emu/wm_shrx.S
.file "wm_shrx.S" /*---------------------------------------------------------------------------+ | wm_shrx.S | | | | 64 bit right shift functions ...
alibaba/LVS
12,382
kernel/arch/x86/math-emu/reg_u_div.S
.file "reg_u_div.S" /*---------------------------------------------------------------------------+ | reg_u_div.S | | | | Divide one FPU_REG by another and put the result in a desti...
alibaba/LVS
7,748
kernel/arch/x86/lguest/i386_head.S
#include <linux/linkage.h> #include <linux/lguest.h> #include <asm/lguest_hcall.h> #include <asm/asm-offsets.h> #include <asm/thread_info.h> #include <asm/processor-flags.h> /*G:020 * Our story starts with the kernel booting into startup_32 in * arch/x86/kernel/head_32.S. It expects a boot header, which is created ...
alibaba/LVS
2,478
kernel/arch/x86/lib/memcpy_64.S
/* Copyright 2002 Andi Kleen */ #include <linux/linkage.h> #include <asm/cpufeature.h> #include <asm/dwarf2.h> /* * memcpy - Copy a memory block. * * Input: * rdi destination * rsi source * rdx count * * Output: * rax original destination */ /* * memcpy_c() - fast string ops (REP MOVSQ) based variant....
alibaba/LVS
2,834
kernel/arch/x86/lib/semaphore_32.S
/* * i386 semaphore implementation. * * (C) Copyright 1999 Linus Torvalds * * Portions Copyright 1999 Red Hat, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2...
alibaba/LVS
5,442
kernel/arch/x86/lib/copy_user_64.S
/* * Copyright 2008 Vitaly Mayatskikh <vmayatsk@redhat.com> * Copyright 2002 Andi Kleen, SuSE Labs. * Subject to the GNU Public License v2. * * Functions to copy from and to user space. */ #include <linux/linkage.h> #include <asm/dwarf2.h> #define FIX_ALIGNMENT 1 #include <asm/current.h> #include <asm/asm-offs...
alibaba/LVS
2,468
kernel/arch/x86/lib/copy_user_nocache_64.S
/* * Copyright 2008 Vitaly Mayatskikh <vmayatsk@redhat.com> * Copyright 2002 Andi Kleen, SuSE Labs. * Subject to the GNU Public License v2. * * Functions to copy from and to user space. */ #include <linux/linkage.h> #include <asm/dwarf2.h> #define FIX_ALIGNMENT 1 #include <asm/current.h> #include <asm/asm-offs...
alibaba/LVS
1,778
kernel/arch/x86/lib/rwsem_64.S
/* * x86-64 rwsem wrappers * * This interfaces the inline asm code to the slow-path * C routines. We need to save the call-clobbered regs * that the asm does not mark as clobbered, and move the * argument from %rax to %rdi. * * NOTE! We don't need to save %rax, because the functions * will always return the se...
alibaba/LVS
2,320
kernel/arch/x86/lib/memset_64.S
/* Copyright 2002 Andi Kleen, SuSE Labs */ #include <linux/linkage.h> #include <asm/dwarf2.h> /* * ISO C memset - set a memory block to a byte value. * * rdi destination * rsi value (char) * rdx count (bytes) * * rax original destination */ ALIGN memset_c: CFI_STARTPROC movq %rdi,%r9 movl %ed...
alibaba/LVS
1,916
kernel/arch/x86/lib/msr-reg.S
#include <linux/linkage.h> #include <linux/errno.h> #include <asm/dwarf2.h> #include <asm/asm.h> #include <asm/msr.h> #ifdef CONFIG_X86_64 /* * int native_{rdmsr,wrmsr}_safe_regs(u32 gprs[8]); * * reg layout: u32 gprs[eax, ecx, edx, ebx, esp, ebp, esi, edi] * */ .macro op_safe_regs op ENTRY(native_\op\()_safe_reg...
alibaba/LVS
11,407
kernel/arch/x86/lib/checksum_32.S
/* * 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, <jorge@laser.satlink.net> * Arnt Gulbrandsen, <a...
alibaba/LVS
4,160
kernel/arch/x86/lib/csum-copy_64.S
/* * 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/dwarf2.h> #i...
alibaba/LVS
2,337
kernel/arch/x86/lib/copy_page_64.S
/* Written 2003 by Andi Kleen, based on a kernel by Evandro Menezes */ #include <linux/linkage.h> #include <asm/dwarf2.h> ALIGN copy_page_c: CFI_STARTPROC movl $4096/8,%ecx rep movsq ret CFI_ENDPROC ENDPROC(copy_page_c) /* Don't use streaming store because it's better when the target ends up in cache. */ ...
alibaba/LVS
1,843
kernel/arch/x86/lib/thunk_64.S
/* * Save registers before calling assembly functions. This avoids * disturbance of register allocation in some inline assembly constructs. * Copyright 2001,2002 by Andi Kleen, SuSE Labs. * Added trace_hardirqs callers - Copyright 2007 Steven Rostedt, Red Hat, Inc. * Subject to the GNU public license, v.2. No warr...
alibaba/LVS
2,102
kernel/arch/x86/lib/getuser.S
/* * __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 to the "real" * return value. */ /*...
alibaba/LVS
1,848
kernel/arch/x86/lib/putuser.S
/* * __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 to the "real" * return value. */ #in...
alibaba/LVS
1,566
kernel/arch/x86/boot/bioscall.S
/* ----------------------------------------------------------------------- * * Copyright 2009 Intel Corporation; author H. Peter Anvin * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2 or (at your * option) any later version; inc...
alibaba/LVS
8,288
kernel/arch/x86/boot/header.S
/* * header.S * * Copyright (C) 1991, 1992 Linus Torvalds * * Based on bootsect.S and setup.S * modified by more people than can be counted * * Rewritten as a common file by H. Peter Anvin (Apr 2007) * * BIG FAT NOTE: We're in real mode using 64k segments. Therefore segment * addresses must be multiplied by...
alibaba/LVS
1,321
kernel/arch/x86/boot/copy.S
/* ----------------------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ...
alibaba/LVS
1,743
kernel/arch/x86/boot/pmjump.S
/* ----------------------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ...
alibaba/LVS
2,062
kernel/arch/x86/vdso/vdso32/syscall.S
/* * Code for the vDSO. This version uses the syscall instruction. * * First get the common code for the sigreturn entry points. * This must come first. */ #define SYSCALL_ENTER_KERNEL syscall #include "sigreturn.S" #include <asm/segment.h> .text .globl __kernel_vsyscall .type __kernel_vsyscall,@function AL...
alibaba/LVS
5,066
kernel/arch/x86/vdso/vdso32/sigreturn.S
/* * Common code for the sigreturn entry points in vDSO images. * So far this code is the same for both int80 and sysenter versions. * This file is #include'd by int80.S et al to define them first thing. * The kernel assumes that the addresses of these routines are constant * for all vDSO implementations. */ #in...
alibaba/LVS
1,676
kernel/arch/x86/vdso/vdso32/note.S
/* * 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/version.h> #include <linux/elfnote.h> /* Ideally this would use UTS_NAME, but using a quoted string here doesn't work. Remember to change this when changi...
alibaba/LVS
1,468
kernel/arch/x86/vdso/vdso32/int80.S
/* * Code for the vDSO. This version uses the old int $0x80 method. * * First get the common code for the sigreturn entry points. * This must come first. */ #include "sigreturn.S" .text .globl __kernel_vsyscall .type __kernel_vsyscall,@function ALIGN __kernel_vsyscall: .LSTART_vsyscall: int $0x80 ret .LEND...
alibaba/LVS
3,846
kernel/arch/x86/vdso/vdso32/sysenter.S
/* * Code for the vDSO. This version uses the sysenter instruction. * * First get the common code for the sigreturn entry points. * This must come first. */ #include "sigreturn.S" /* * The caller puts arg2 in %ecx, which gets pushed. The kernel will use * %ecx itself for arg2. The pushing is because the sysexi...
alibaba/LVS
2,719
kernel/arch/x86/kernel/acpi/wakeup_64.S
.text #include <linux/linkage.h> #include <asm/segment.h> #include <asm/pgtable_types.h> #include <asm/page_types.h> #include <asm/msr.h> #include <asm/asm-offsets.h> # Copyright 2003 Pavel Machek <pavel@suse.cz>, distribute under GPLv2 .code64 /* * Hooray, we are in Long 64-bit mode (but still running in low memo...
alibaba/LVS
1,765
kernel/arch/x86/kernel/acpi/wakeup_32.S
.section .text.page_aligned #include <linux/linkage.h> #include <asm/segment.h> #include <asm/page_types.h> # Copyright 2003, 2008 Pavel Machek <pavel@suse.cz>, distribute under GPLv2 .code32 ALIGN ENTRY(wakeup_pmode_return) wakeup_pmode_return: movw $__KERNEL_DS, %ax movw %ax, %ss movw %ax, %ds movw %ax, %es...
alibaba/LVS
2,658
kernel/arch/x86/kernel/acpi/realmode/wakeup.S
/* * ACPI wakeup real mode startup stub */ #include <asm/segment.h> #include <asm/msr-index.h> #include <asm/page_types.h> #include <asm/pgtable_types.h> #include <asm/processor-flags.h> .code16 .section ".header", "a" /* This should match the structure in wakeup.h */ .globl wakeup_header wakeup_header: video_m...
alibaba/LVS
3,871
kernel/arch/x86/boot/compressed/head_32.S
/* * linux/boot/head.S * * Copyright (C) 1991, 1992, 1993 Linus Torvalds */ /* * head.S contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x00001000, which is also where * the page directory will exist. The startup code will be overwritten by * the page directory. [Accordin...
alibaba/LVS
1,034
kernel/arch/x86/boot/compressed/vmlinux.lds.S
#include <asm-generic/vmlinux.lds.h> OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT) #undef i386 #include <asm/page_types.h> #ifdef CONFIG_X86_64 OUTPUT_ARCH(i386:x86-64) ENTRY(startup_64) #else OUTPUT_ARCH(i386) ENTRY(startup_32) #endif SECTIONS { /* Be careful parts of head_64.S ...
alibaba/LVS
7,553
kernel/arch/x86/boot/compressed/head_64.S
/* * linux/boot/head.S * * Copyright (C) 1991, 1992, 1993 Linus Torvalds */ /* * head.S contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x00001000, which is also where * the page directory will exist. The startup code will be overwritten by * the page directory. [Accordin...
alibaba/LVS
2,166
kernel/arch/alpha/kernel/head.S
/* * arch/alpha/kernel/head.S * * initial boot stuff.. At this point, the bootloader has already * switched into OSF/1 PAL-code, and loaded us at the correct address * (START_ADDR). So there isn't much left for us to do: just set up * the kernel global pointer and jump to the kernel entry-point. */ #include <l...
alibaba/LVS
19,192
kernel/arch/alpha/kernel/entry.S
/* * arch/alpha/kernel/entry.S * * Kernel entry-points. */ #include <asm/asm-offsets.h> #include <asm/thread_info.h> #include <asm/pal.h> #include <asm/errno.h> #include <asm/unistd.h> .text .set noat /* Stack offsets. */ #define SP_OFF 184 #define SWITCH_STACK_SIZE 320 /* * This defines the normal kernel...
alibaba/LVS
12,602
kernel/arch/alpha/kernel/systbls.S
/* * arch/alpha/kernel/systbls.S * * The system call table. */ #include <asm/unistd.h> .data .align 3 .globl sys_call_table sys_call_table: .quad alpha_ni_syscall /* 0 */ .quad sys_exit .quad sys_fork .quad sys_read .quad sys_write .quad alpha_ni_syscall /* 5 */ .quad sys_close .quad sys_osf_wait4...
alibaba/LVS
1,241
kernel/arch/alpha/kernel/vmlinux.lds.S
#include <asm-generic/vmlinux.lds.h> #include <asm/thread_info.h> #include <asm/page.h> OUTPUT_FORMAT("elf64-alpha") OUTPUT_ARCH(alpha) ENTRY(__start) PHDRS { kernel PT_LOAD; note PT_NOTE; } jiffies = jiffies_64; SECTIONS { #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS . = 0xfffffc0000310000; #else . = 0xfffffc0001010000...
alibaba/LVS
3,290
kernel/arch/alpha/math-emu/qrnnd.S
# Alpha 21064 __udiv_qrnnd # Copyright (C) 1992, 1994, 1995, 2000 Free Software Foundation, Inc. # This file is part of GCC. # The GNU MP Library is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ...
alibaba/LVS
2,687
kernel/arch/alpha/lib/clear_user.S
/* * arch/alpha/lib/clear_user.S * Contributed by Richard Henderson <rth@tamu.edu> * * Zero user space, handling exceptions as we go. * * We have to make sure that $0 is always up-to-date and contains the * right "bytes left to zero" value (and that it is updated only _after_ * a successful copy). There is als...
alibaba/LVS
4,293
kernel/arch/alpha/lib/divide.S
/* * 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-bit unsigned long remainder * __divqs/__remqs: si...
alibaba/LVS
2,795
kernel/arch/alpha/lib/ev67-strchr.S
/* * 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 scheduling/coding comes from: * Compiler Writer's Guid...
alibaba/LVS
8,955
kernel/arch/alpha/lib/stxcpy.S
/* * arch/alpha/lib/stxcpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * 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 linkage conventions to make implementation * of these public functions more efficient. ...
alibaba/LVS
16,147
kernel/arch/alpha/lib/ev6-memset.S
/* * 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> * * Much of the information about 21264 scheduling/coding ...
alibaba/LVS
2,840
kernel/arch/alpha/lib/callback_srm.S
/* * arch/alpha/lib/callback_srm.S */ #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_srm beq $4,nosrm #endif ldq $0,hwrpb # gp is set up by CALLBACK macro. ld...
alibaba/LVS
6,293
kernel/arch/alpha/lib/ev6-memcpy.S
/* * 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 * * Much of the information about 21264 scheduling/codin...
alibaba/LVS
9,627
kernel/arch/alpha/lib/ev6-stxcpy.S
/* * 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 linkage conventions to make implementation * of these pu...
alibaba/LVS
1,828
kernel/arch/alpha/lib/strncat.S
/* * arch/alpha/lib/strncat.S * Contributed by Richard Henderson (rth@tamu.edu) * * Append no more than COUNT characters from the null-terminated string SRC * to the null-terminated string DST. Always null-terminate the new DST. * * This differs slightly from the semantics in libc in that we never write * past...
alibaba/LVS
10,844
kernel/arch/alpha/lib/stxncpy.S
/* * arch/alpha/lib/stxncpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. * * This is an internal routine used by strncpy, stpncpy, and strncat. * As such, it uses special linkage conventions to make implementation * of th...
alibaba/LVS
1,987
kernel/arch/alpha/lib/strlen_user.S
/* * arch/alpha/lib/strlen_user.S * * Return the length of the string including the NUL terminator * (strlen+1) or zero if an error occurred. * * In places where it is critical to limit the processing time, * and the data is not trusted, strnlen_user() should be used. * It will return a value greater than its s...
alibaba/LVS
1,276
kernel/arch/alpha/lib/ev67-strlen.S
/* * arch/alpha/lib/ev67-strlen.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * * Much of the information abou...
alibaba/LVS
11,515
kernel/arch/alpha/lib/ev6-stxncpy.S
/* * arch/alpha/lib/ev6-stxncpy.S * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. * * This is an internal routine used by strncpy, stpncpy, and strncat. * As such, it uses special linkage conventions to ...
alibaba/LVS
2,649
kernel/arch/alpha/lib/memmove.S
/* * 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. */ .set noat .set noreorder .text .align 4 .globl memmove .ent memmove...
alibaba/LVS
1,542
kernel/arch/alpha/lib/ev67-strcat.S
/* * 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 for the Alpha 21264 * abbreviated as 'CWG' in other ...
alibaba/LVS
2,556
kernel/arch/alpha/lib/ev67-strlen_user.S
/* * arch/alpha/lib/ev67-strlen_user.S * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> * * Return the length of the string including the NULL terminator * (strlen+1) or zero if an error occurred. * * In places where it is critical to limit the processing time, * and the data is not tru...
alibaba/LVS
5,359
kernel/arch/alpha/lib/ev6-memchr.S
/* * 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 bytes in parallel * - does binary search to find...
alibaba/LVS
2,954
kernel/arch/alpha/lib/memset.S
/* * 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 * the only obligation I put on you is a moral one: if...
alibaba/LVS
5,207
kernel/arch/alpha/lib/ev6-csum_ipv6_magic.S
/* * arch/alpha/lib/ev6-csum_ipv6_magic.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * unsigned short csum_ipv6_magic(struct in6_addr *saddr, * struct in6_addr *daddr, * __u32 len, * u...
alibaba/LVS
2,573
kernel/arch/alpha/lib/copy_user.S
/* * 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 * contains the right "bytes left to copy" value (and t...
alibaba/LVS
6,395
kernel/arch/alpha/lib/ev6-divide.S
/* * arch/alpha/lib/ev6-divide.S * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * 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...
alibaba/LVS
11,582
kernel/arch/alpha/lib/ev6-strncpy_from_user.S
/* * arch/alpha/lib/ev6-strncpy_from_user.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Just like strncpy except in the return value: * * -EFAULT if an exception occurs before the terminator is copied. * N if the buffer filled. * * Otherwise the length of ...
alibaba/LVS
2,885
kernel/arch/alpha/lib/csum_ipv6_magic.S
/* * arch/alpha/lib/csum_ipv6_magic.S * Contributed by Richard Henderson <rth@tamu.edu> * * unsigned short csum_ipv6_magic(struct in6_addr *saddr, * struct in6_addr *daddr, * __u32 len, * unsigned short proto, * ...
alibaba/LVS
2,767
kernel/arch/alpha/lib/strrchr.S
/* * arch/alpha/lib/strrchr.S * Contributed by Richard Henderson (rth@tamu.edu) * * Return the address of the last occurrence of a given character * within a null-terminated string, or null if it is not found. */ #include <asm/regdef.h> .set noreorder .set noat .align 3 .ent strrchr .globl strrchr strrchr...
alibaba/LVS
10,119
kernel/arch/alpha/lib/strncpy_from_user.S
/* * arch/alpha/lib/strncpy_from_user.S * Contributed by Richard Henderson (rth@tamu.edu) * * Just like strncpy except in the return value: * * -EFAULT if an exception occurs before the terminator is copied. * N if the buffer filled. * * Otherwise the length of the string is returned. */ #...
alibaba/LVS
3,292
kernel/arch/alpha/lib/ev67-strrchr.S
/* * arch/alpha/lib/ev67-strrchr.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * * Much of the information abo...
alibaba/LVS
5,001
kernel/arch/alpha/lib/memchr.S
/* 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 published by the ...
alibaba/LVS
4,253
kernel/arch/alpha/lib/ev6-copy_page.S
/* * 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 Problem: STQ overflows. ------------------------...
alibaba/LVS
7,372
kernel/arch/alpha/lib/ev6-clear_user.S
/* * arch/alpha/lib/ev6-clear_user.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Zero user space, handling exceptions as we go. * * We have to make sure that $0 is always up-to-date and contains the * right "bytes left to zero" value (and that it is updated only _after_ * a ...
alibaba/LVS
1,135
kernel/arch/alpha/lib/strlen.S
/* * strlen.S (c) 1995 David Mosberger (davidm@cs.arizona.edu) * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * - does binary search to find 0 byte in last * quadword (HAKMEM ne...
alibaba/LVS
2,416
kernel/arch/alpha/lib/ev67-strncat.S
/* * arch/alpha/lib/ev67-strncat.S * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> * * Append no more than COUNT characters from the null-terminated string SRC * to the null-terminated string DST. Always null-terminate the new DST. * * This differs slightly from the semantics in libc i...
alibaba/LVS
1,934
kernel/arch/alpha/lib/strchr.S
/* * arch/alpha/lib/strchr.S * Contributed by Richard Henderson (rth@tamu.edu) * * Return the address of a given character within a null-terminated * string, or null if it is not found. */ #include <asm/regdef.h> .set noreorder .set noat .align 3 .globl strchr .ent strchr strchr: .frame sp, 0, ra .prolo...
alibaba/LVS
7,439
kernel/arch/alpha/lib/ev6-copy_user.S
/* * arch/alpha/lib/ev6-copy_user.S * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * 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 tha...
alibaba/LVS
1,486
kernel/arch/alpha/lib/strncpy.S
/* * arch/alpha/lib/strncpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. If SRC does not cover all of COUNT, the balance is * zeroed. * * Or, rather, if the kernel cared about that weird ANSI quirk. This * version has c...
alibaba/LVS
1,809
kernel/arch/alpha/boot/head.S
/* * arch/alpha/boot/head.S * * initial bootloader stuff.. */ #include <asm/system.h> .set noreorder .globl __start .ent __start __start: br $29,2f 2: ldgp $29,0($29) jsr $26,start_kernel call_pal PAL_halt .end __start .align 5 .globl wrent .ent wrent wrent: .prologue 0 call_pal PAL_wrent ret ($26) ...
alibaba/LVS
1,363
kernel/arch/mips/power/hibernate.S
/* * Hibernation support specific for mips - temporary page tables * * Licensed under the GPLv2 * * Copyright (C) 2009 Lemote Inc. & Insititute of Computing Technology * Author: Hu Hongbing <huhb@lemote.com> * Wu Zhangjin <wuzj@lemote.com> */ #include <asm/asm-offsets.h> #include <asm/page.h> #include <...
alibaba/LVS
7,544
kernel/arch/mips/dec/int-handler.S
/* * Copyright (C) 1995, 1996, 1997 Paul M. Antoine and Harald Koerfgen * Copyright (C) 2000, 2001, 2002, 2003, 2005 Maciej W. Rozycki * * Written by Ralf Baechle and Andreas Busse, modified for DECstation * support by Paul Antoine and Harald Koerfgen. * * completly rewritten: * Copyright (C) 1998 Harald Koerf...
alibaba/LVS
6,017
kernel/arch/mips/kernel/head.S
/* * 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) 1994, 1995 Waldorf Electronics * Written by Ralf Baechle and Andreas Busse * Copyright (C) 1994 - 99, 2003, 06 Ralf Baechl...
alibaba/LVS
5,059
kernel/arch/mips/kernel/r4k_fpu.S
/* * 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) 1996, 98, 99, 2000, 01 Ralf Baechle * * Multi-arch abstraction and asm macros for easier reading: * Copyright (C) 1996 Da...
alibaba/LVS
3,683
kernel/arch/mips/kernel/r2300_fpu.S
/* * 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) 1996, 1998 by Ralf Baechle * * Multi-arch abstraction and asm macros for easier reading: * Copyright (C) 1996 David S. Mi...
alibaba/LVS
2,277
kernel/arch/mips/kernel/r6000_fpu.S
/* * r6000_fpu.S: Save/restore floating point context for signal handlers. * * 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) 1996 by Ralf Baechle * * Multi-arch abstractio...
alibaba/LVS
13,035
kernel/arch/mips/kernel/octeon_switch.S
/* * 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) 1994, 1995, 1996, 1998, 1999, 2002, 2003 Ralf Baechle * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) * Copyright (...
alibaba/LVS
9,580
kernel/arch/mips/kernel/scall64-64.S
/* * 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, 96, 97, 98, 99, 2000, 01, 02 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2001 ...
alibaba/LVS
4,541
kernel/arch/mips/kernel/entry.S
/* * 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) 1994 - 2000, 2001, 2003 Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2001 MIPS Technolog...
alibaba/LVS
3,604
kernel/arch/mips/kernel/smtc-asm.S
/* * Assembly Language Functions for MIPS MT SMTC support */ /* * This file should be built into the kernel only if CONFIG_MIPS_MT_SMTC is set. */ #include <asm/regdef.h> #include <asm/asmmacro.h> #include <asm/stackframe.h> #include <asm/irqflags.h> /* * "Software Interrupt" linkage. * * This is invoked when ...
alibaba/LVS
1,676
kernel/arch/mips/kernel/relocate_kernel.S
/* * relocate_kernel.S for kexec * Created by <nschichan@corp.free.fr> on Thu Oct 12 17:49:57 2006 * * This source code is licensed under the GNU General Public License, * Version 2. See the file COPYING for more details. */ #include <asm/asm.h> #include <asm/asmmacro.h> #include <asm/regdef.h> #include <asm/pa...
alibaba/LVS
5,171
kernel/arch/mips/kernel/r4k_switch.S
/* * 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) 1994, 1995, 1996, 1998, 1999, 2002, 2003 Ralf Baechle * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) * Copyright (...
alibaba/LVS
10,065
kernel/arch/mips/kernel/scall64-n32.S
/* * 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, 96, 97, 98, 99, 2000, 01 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2001 MIPS...
alibaba/LVS
3,395
kernel/arch/mips/kernel/r2300_switch.S
/* * r2300_switch.S: R2300 specific task switching code. * * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle * Copyright (C) 1994, 1995, 1996 by Andreas Busse * * Multi-cpu abstraction and macros for easier reading: * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) * * Further modifications to make t...
alibaba/LVS
13,112
kernel/arch/mips/kernel/scall64-o32.S
/* * 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 - 2000, 2001 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2001 MIPS Technologies...
alibaba/LVS
2,881
kernel/arch/mips/kernel/vmlinux.lds.S
#include <asm/asm-offsets.h> #include <asm/page.h> #include <asm-generic/vmlinux.lds.h> #undef mips #define mips mips OUTPUT_ARCH(mips) ENTRY(kernel_entry) PHDRS { text PT_LOAD FLAGS(7); /* RWX */ note PT_NOTE FLAGS(4); /* R__ */ } #ifdef CONFIG_32BIT #ifdef CONFIG_CPU_LITTLE_ENDIAN jiffies = jiffies_64; #else...
alibaba/LVS
12,128
kernel/arch/mips/kernel/genex.S
/* * 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) 1994 - 2000, 2001, 2003 Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2001 MIPS Technolog...
alibaba/LVS
14,736
kernel/arch/mips/kernel/scall32-o32.S
/* * 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-99, 2000- 02, 06 Ralf Baechle <ralf@linux-mips.org> * Copyright (C) 2001 MIPS Technologies, Inc. * Copyright (C) 2004...
alibaba/LVS
13,148
kernel/arch/mips/cavium-octeon/octeon-memcpy.S
/* * 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. * * Unified implementation of memcpy, memmove and the __copy_user backend. * * Copyright (C) 1998, 99, 2000, 01, 2002 Ralf Baechle (ralf@gnu...
alibaba/LVS
1,236
kernel/arch/mips/lib/strnlen_user.S
/* * 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) 1996, 1998, 1999, 2004 by Ralf Baechle * Copyright (c) 1999 Silicon Graphics, Inc. */ #include <asm/asm.h> #include <asm/a...
alibaba/LVS
13,888
kernel/arch/mips/lib/memcpy.S
/* * 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. * * Unified implementation of memcpy, memmove and the __copy_user backend. * * Copyright (C) 1998, 99, 2000, 01, 2002 Ralf Baechle (ralf@gnu...
alibaba/LVS
11,372
kernel/arch/mips/lib/memcpy-inatomic.S
/* * 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. * * Unified implementation of memcpy, memmove and the __copy_user backend. * * Copyright (C) 1998, 99, 2000, 01, 2002 Ralf Baechle (ralf@gnu...
alibaba/LVS
4,179
kernel/arch/mips/lib/memset.S
/* * 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) 1998, 1999, 2000 by Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Copyright (C) 2007 Maciej W. Rozycki...
alibaba/LVS
1,345
kernel/arch/mips/lib/strncpy_user.S
/* * 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) 1996, 1999 by Ralf Baechle */ #include <linux/errno.h> #include <asm/asm.h> #include <asm/asm-offsets.h> #include <asm/regd...
alibaba/LVS
16,737
kernel/arch/mips/lib/csum_partial.S
/* * 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. * * Quick'n'dirty IP checksum ... * * Copyright (C) 1998, 1999 Ralf Baechle * Copyright (C) 1999 Silicon Graphics, Inc. * Copyright (C) 20...
alibaba/LVS
4,707
kernel/arch/mips/mm/cex-sb1.S
/* * Copyright (C) 2001,2002,2003 Broadcom Corporation * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * Thi...
alibaba/LVS
1,574
kernel/arch/mips/mm/cex-oct.S
/* * 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) 2006 Cavium Networks * Cache error handler */ #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h> #inc...