Skip to content

Commit

Permalink
[PATCH] v850: Define L1_CACHE_SHIFT and L1_CACHE_SHIFT_MAX
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Bader <miles@gnu.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Miles Bader authored and Linus Torvalds committed Jul 27, 2005
1 parent 8b2bf06 commit 8449d00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions include/asm-v850/cache.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* include/asm-v850/cache.h -- Cache operations
*
* Copyright (C) 2001 NEC Corporation
* Copyright (C) 2001 Miles Bader <miles@gnu.org>
* Copyright (C) 2001,05 NEC Corporation
* Copyright (C) 2001,05 Miles Bader <miles@gnu.org>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this
Expand All @@ -20,6 +20,9 @@
#ifndef L1_CACHE_BYTES
/* This processor has no cache, so just choose an arbitrary value. */
#define L1_CACHE_BYTES 16
#define L1_CACHE_SHIFT 4
#endif

#define L1_CACHE_SHIFT_MAX L1_CACHE_SHIFT

#endif /* __V850_CACHE_H__ */
5 changes: 3 additions & 2 deletions include/asm-v850/v850e2_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* include/asm-v850/v850e2_cache_cache.h -- Cache control for V850E2
* cache memories
*
* Copyright (C) 2003 NEC Electronics Corporation
* Copyright (C) 2003 Miles Bader <miles@gnu.org>
* Copyright (C) 2003,05 NEC Electronics Corporation
* Copyright (C) 2003,05 Miles Bader <miles@gnu.org>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this
Expand Down Expand Up @@ -69,6 +69,7 @@

/* For <asm/cache.h> */
#define L1_CACHE_BYTES V850E2_CACHE_LINE_SIZE
#define L1_CACHE_SHIFT V850E2_CACHE_LINE_SIZE_BITS


#endif /* __V850_V850E2_CACHE_H__ */

0 comments on commit 8449d00

Please sign in to comment.