diff options
Diffstat (limited to 'arch/openrisc/include')
-rw-r--r-- | arch/openrisc/include/asm/barebox.lds.h | 5 | ||||
-rw-r--r-- | arch/openrisc/include/asm/bitsperlong.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/byteorder.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/common.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/linkage.h | 9 | ||||
-rw-r--r-- | arch/openrisc/include/asm/mmu.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/posix_types.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/sections.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/setjmp.h | 17 | ||||
-rw-r--r-- | arch/openrisc/include/asm/string.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/swab.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/types.h | 48 | ||||
-rw-r--r-- | arch/openrisc/include/asm/word-at-a-time.h | 2 |
13 files changed, 50 insertions, 47 deletions
diff --git a/arch/openrisc/include/asm/barebox.lds.h b/arch/openrisc/include/asm/barebox.lds.h new file mode 100644 index 0000000000..87d868e1ad --- /dev/null +++ b/arch/openrisc/include/asm/barebox.lds.h @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#define BAREBOX_OUTPUT_FORMAT "elf32-or1k", "elf32-or1k", "elf32-or1k" + +#include <asm-generic/barebox.lds.h> diff --git a/arch/openrisc/include/asm/bitsperlong.h b/arch/openrisc/include/asm/bitsperlong.h index 6dc0bb0c13..bf000a04cc 100644 --- a/arch/openrisc/include/asm/bitsperlong.h +++ b/arch/openrisc/include/asm/bitsperlong.h @@ -1 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #include <asm-generic/bitsperlong.h> diff --git a/arch/openrisc/include/asm/byteorder.h b/arch/openrisc/include/asm/byteorder.h index 60d14f7e14..bd60c438a9 100644 --- a/arch/openrisc/include/asm/byteorder.h +++ b/arch/openrisc/include/asm/byteorder.h @@ -1 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #include <linux/byteorder/big_endian.h> diff --git a/arch/openrisc/include/asm/common.h b/arch/openrisc/include/asm/common.h index 027dca2d56..06bb4824a2 100644 --- a/arch/openrisc/include/asm/common.h +++ b/arch/openrisc/include/asm/common.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _ASM_COMMON_H #define __ASM_COMMON_H diff --git a/arch/openrisc/include/asm/linkage.h b/arch/openrisc/include/asm/linkage.h new file mode 100644 index 0000000000..aebd618b27 --- /dev/null +++ b/arch/openrisc/include/asm/linkage.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ASM_LINKAGE_H +#define __ASM_LINKAGE_H + +#define __ALIGN .align 0 +#define __ALIGN_STR ".align 0" + +#endif diff --git a/arch/openrisc/include/asm/mmu.h b/arch/openrisc/include/asm/mmu.h index 95af871420..1c2646ebb3 100644 --- a/arch/openrisc/include/asm/mmu.h +++ b/arch/openrisc/include/asm/mmu.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef __ASM_MMU_H #define __ASM_MMU_H diff --git a/arch/openrisc/include/asm/posix_types.h b/arch/openrisc/include/asm/posix_types.h index 22cae6230c..feaed42471 100644 --- a/arch/openrisc/include/asm/posix_types.h +++ b/arch/openrisc/include/asm/posix_types.h @@ -1 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #include <asm-generic/posix_types.h> diff --git a/arch/openrisc/include/asm/sections.h b/arch/openrisc/include/asm/sections.h index 2b8c516038..c6dd0eead2 100644 --- a/arch/openrisc/include/asm/sections.h +++ b/arch/openrisc/include/asm/sections.h @@ -1 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #include <asm-generic/sections.h> diff --git a/arch/openrisc/include/asm/setjmp.h b/arch/openrisc/include/asm/setjmp.h new file mode 100644 index 0000000000..ee73306d18 --- /dev/null +++ b/arch/openrisc/include/asm/setjmp.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Define the machine-dependent type `jmp_buf'. OpenRISC version. + * Copyright (C) 2021 Free Software Foundation, Inc. + * This file is part of the GNU C Library. + */ + +#ifndef _OR1K_BITS_SETJMP_H +#define _OR1K_BITS_SETJMP_H 1 + +typedef long int jmp_buf[13]; + +int setjmp(jmp_buf jmp) __attribute__((returns_twice)); +void longjmp(jmp_buf jmp, int ret) __attribute__((noreturn)); +int initjmp(jmp_buf jmp, void __attribute__((noreturn)) (*func)(void), void *stack_top); + +#endif /* _OR1K_BITS_SETJMP_H */ diff --git a/arch/openrisc/include/asm/string.h b/arch/openrisc/include/asm/string.h index 73e265564a..cfc2ea1f37 100644 --- a/arch/openrisc/include/asm/string.h +++ b/arch/openrisc/include/asm/string.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef __ASM_OPENRISC_STRING_H #define __ASM_OPENRISC_STRING_H diff --git a/arch/openrisc/include/asm/swab.h b/arch/openrisc/include/asm/swab.h index b07e1d51f1..0b49949db8 100644 --- a/arch/openrisc/include/asm/swab.h +++ b/arch/openrisc/include/asm/swab.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef _ASM_SWAB_H #define _ASM_SWAB_H diff --git a/arch/openrisc/include/asm/types.h b/arch/openrisc/include/asm/types.h index 8ee6bb00f9..21a45b74cd 100644 --- a/arch/openrisc/include/asm/types.h +++ b/arch/openrisc/include/asm/types.h @@ -16,52 +16,6 @@ #ifndef _ASM_TYPES_H #define _ASM_TYPES_H -/* - * This file is never included by application software unless - * explicitly requested (e.g., via linux/types.h) in which case the - * application is Linux specific so (user-) name space pollution is - * not a major issue. However, for interoperability, libraries still - * need to be careful to avoid a name clashes. - */ - -/* - * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the - * header files exported to user space - */ - -typedef __signed__ char __s8; -typedef unsigned char __u8; - -typedef __signed__ short __s16; -typedef unsigned short __u16; - -typedef __signed__ int __s32; -typedef unsigned int __u32; - -#if defined(__GNUC__) -__extension__ typedef __signed__ long long __s64; -__extension__ typedef unsigned long long __u64; -#endif - -/* - * These aren't exported outside the kernel to avoid name space clashes - */ -#ifdef __KERNEL__ - -typedef signed char s8; -typedef unsigned char u8; - -typedef signed short s16; -typedef unsigned short u16; - -typedef signed int s32; -typedef unsigned int u32; - -typedef signed long long s64; -typedef unsigned long long u64; - -#include <asm/bitsperlong.h> - -#endif /* __KERNEL__ */ +#include <asm-generic/int-ll64.h> #endif /* _ASM_TYPES_H */ diff --git a/arch/openrisc/include/asm/word-at-a-time.h b/arch/openrisc/include/asm/word-at-a-time.h new file mode 100644 index 0000000000..f6306fb896 --- /dev/null +++ b/arch/openrisc/include/asm/word-at-a-time.h @@ -0,0 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#include <asm-generic/word-at-a-time.h> |