aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/arcregs.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/include/asm/arcregs.h')
-rw-r--r--arch/arc/include/asm/arcregs.h5
1 files changed, 5 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 */