From 2009337e30cdae64405ea7b8fa1578b921508871 Mon Sep 17 00:00:00 2001 From: Ezequiel Garcia Date: Fri, 24 Apr 2015 14:48:35 +0800 Subject: nios2: Add types.h header required for __u32 type Reported by the header checker (CONFIG_HEADERS_CHECK=y): CHECK usr/include/asm/ (31 files) ./usr/include/asm/ptrace.h:77: found __[us]{8,16,32,64} type without #include Signed-off-by: Ezequiel Garcia Acked-by: Ley Foon Tan --- arch/nios2/include/uapi/asm/ptrace.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/nios2/include') diff --git a/arch/nios2/include/uapi/asm/ptrace.h b/arch/nios2/include/uapi/asm/ptrace.h index eff00e67..1d35de9 100644 --- a/arch/nios2/include/uapi/asm/ptrace.h +++ b/arch/nios2/include/uapi/asm/ptrace.h @@ -14,6 +14,8 @@ #ifndef __ASSEMBLY__ +#include + /* * Register numbers used by 'ptrace' system call interface. */ -- cgit v1.1 From 1a70db49a735350f221959bf26e9a12f63a743bc Mon Sep 17 00:00:00 2001 From: Ley Foon Tan Date: Fri, 24 Apr 2015 14:18:55 +0800 Subject: nios2: rework cache - flush dcache before flush instruction cache - remork update_mmu_cache and flush_dcache_page - add shmparam.h Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/Kbuild | 1 - arch/nios2/include/asm/shmparam.h | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 arch/nios2/include/asm/shmparam.h (limited to 'arch/nios2/include') diff --git a/arch/nios2/include/asm/Kbuild b/arch/nios2/include/asm/Kbuild index 01c75f3..24b3d89 100644 --- a/arch/nios2/include/asm/Kbuild +++ b/arch/nios2/include/asm/Kbuild @@ -46,7 +46,6 @@ generic-y += segment.h generic-y += sembuf.h generic-y += serial.h generic-y += shmbuf.h -generic-y += shmparam.h generic-y += siginfo.h generic-y += signal.h generic-y += socket.h diff --git a/arch/nios2/include/asm/shmparam.h b/arch/nios2/include/asm/shmparam.h new file mode 100644 index 0000000..6078429 --- /dev/null +++ b/arch/nios2/include/asm/shmparam.h @@ -0,0 +1,21 @@ +/* + * Copyright Altera Corporation (C) <2015>. All rights reserved + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +#ifndef _ASM_NIOS2_SHMPARAM_H +#define _ASM_NIOS2_SHMPARAM_H + +#define SHMLBA CONFIG_NIOS2_DCACHE_SIZE + +#endif /* _ASM_NIOS2_SHMPARAM_H */ -- cgit v1.1