strncpy_user.S (552c69b36ebd966186573b9c7a286b390935cce1) | strncpy_user.S (8f8d5745bb520c76b81abef4a2cb3023d0313bfd) |
---|---|
1/* 2 * arch/xtensa/lib/strncpy_user.S 3 * 4 * This file is subject to the terms and conditions of the GNU General 5 * Public License. See the file "COPYING" in the main directory of 6 * this archive for more details. 7 * 8 * Returns: -EFAULT if exception before terminator, N if the entire 9 * buffer filled, else strlen. 10 * 11 * Copyright (C) 2002 Tensilica Inc. 12 */ 13 14#include <linux/errno.h> 15#include <linux/linkage.h> | 1/* 2 * arch/xtensa/lib/strncpy_user.S 3 * 4 * This file is subject to the terms and conditions of the GNU General 5 * Public License. See the file "COPYING" in the main directory of 6 * this archive for more details. 7 * 8 * Returns: -EFAULT if exception before terminator, N if the entire 9 * buffer filled, else strlen. 10 * 11 * Copyright (C) 2002 Tensilica Inc. 12 */ 13 14#include <linux/errno.h> 15#include <linux/linkage.h> |
16#include <variant/core.h> | |
17#include <asm/asmmacro.h> | 16#include <asm/asmmacro.h> |
17#include <asm/core.h> |
|
18 19/* 20 * char *__strncpy_user(char *dst, const char *src, size_t len) 21 */ 22 23#ifdef __XTENSA_EB__ 24# define MASK0 0xff000000 25# define MASK1 0x00ff0000 --- 192 unchanged lines hidden --- | 18 19/* 20 * char *__strncpy_user(char *dst, const char *src, size_t len) 21 */ 22 23#ifdef __XTENSA_EB__ 24# define MASK0 0xff000000 25# define MASK1 0x00ff0000 --- 192 unchanged lines hidden --- |