1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. 4 */ 5 6 #include <linux/atomic.h> 7 #include <linux/uaccess.h> 8 9 #include <asm/atomic.h> 10 #include <asm/cacheflush.h> 11 #include <asm/checksum.h> 12 #include <asm/delay.h> 13 #include <asm/ftrace.h> 14 #include <asm/oplib.h> 15 #include <asm/pgtable.h> 16 #include <asm/trap_block.h> 17 #include <asm/xor.h> 18 19 void *__memscan_zero(void *, size_t); 20 void *__memscan_generic(void *, int, size_t); 21 void *__bzero(void *, size_t); 22 void VISenter(void); /* Dummy prototype to supress warning */ 23 #undef memcpy 24 #undef memset 25 void *memcpy(void *dest, const void *src, size_t n); 26 void *memset(void *s, int c, size_t n); 27 typedef int TItype __attribute__((mode(TI))); 28 TItype __multi3(TItype a, TItype b); 29 30 s64 __ashldi3(s64, int); 31 s64 __lshrdi3(s64, int); 32 s64 __ashrdi3(s64, int); 33