diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-18 04:42:20 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:45:54 -0500 |
commit | c121c5063c0674fad6811f0b0d86ec3bc6eecbbd (patch) | |
tree | 956c6f18fcf72d3e20a86168669237ecdabd8a13 /arch/arc/include/asm | |
parent | 1162b0701b14ba112d4e3fe5c27c694caf983539 (diff) |
ARC: Boot #1: low-level, setup_arch(), /proc/cpuinfo, mem init
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/include/asm')
-rw-r--r-- | arch/arc/include/asm/arcregs.h | 5 | ||||
-rw-r--r-- | arch/arc/include/asm/setup.h | 22 |
2 files changed, 27 insertions, 0 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index 1c24485fd04b..9e42611e39d3 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h | |||
@@ -258,6 +258,11 @@ | |||
258 | } \ | 258 | } \ |
259 | } | 259 | } |
260 | 260 | ||
261 | /* Helpers */ | ||
262 | #define TO_KB(bytes) ((bytes) >> 10) | ||
263 | #define TO_MB(bytes) (TO_KB(bytes) >> 10) | ||
264 | #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) | ||
265 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) | ||
261 | 266 | ||
262 | #ifdef CONFIG_ARC_FPU_SAVE_RESTORE | 267 | #ifdef CONFIG_ARC_FPU_SAVE_RESTORE |
263 | /* These DPFP regs need to be saved/restored across ctx-sw */ | 268 | /* These DPFP regs need to be saved/restored across ctx-sw */ |
diff --git a/arch/arc/include/asm/setup.h b/arch/arc/include/asm/setup.h new file mode 100644 index 000000000000..ab427e6a2cb5 --- /dev/null +++ b/arch/arc/include/asm/setup.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASMARC_SETUP_H | ||
10 | #define __ASMARC_SETUP_H | ||
11 | |||
12 | #include <linux/types.h> | ||
13 | |||
14 | #define COMMAND_LINE_SIZE 256 | ||
15 | |||
16 | extern int root_mountflags, end_mem; | ||
17 | extern int running_on_hw; | ||
18 | |||
19 | void __init setup_processor(void); | ||
20 | void __init setup_arch_memory(void); | ||
21 | |||
22 | #endif /* __ASMARC_SETUP_H */ | ||