-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 13724 b: refs/heads/master c: 26ef5c0 h: refs/heads/master v: v3
- Loading branch information
David Gibson
authored and
Paul Mackerras
committed
Nov 10, 2005
1 parent
2f6ece1
commit 34ce665
Showing
11 changed files
with
99 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e130bedb7ce718a8eb6b56a3806b96281f618111 | ||
refs/heads/master: 26ef5c09576496dfd08d2b36ec1d08a6f917a0eb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#ifndef _ASM_POWERPC_CACHE_H | ||
#define _ASM_POWERPC_CACHE_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#include <linux/config.h> | ||
|
||
/* bytes per L1 cache line */ | ||
#if defined(CONFIG_8xx) || defined(CONFIG_403GCX) | ||
#define L1_CACHE_SHIFT 4 | ||
#define MAX_COPY_PREFETCH 1 | ||
#elif defined(CONFIG_PPC32) | ||
#define L1_CACHE_SHIFT 5 | ||
#define MAX_COPY_PREFETCH 4 | ||
#else /* CONFIG_PPC64 */ | ||
#define L1_CACHE_SHIFT 7 | ||
#endif | ||
|
||
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | ||
|
||
#define SMP_CACHE_BYTES L1_CACHE_BYTES | ||
#define L1_CACHE_SHIFT_MAX 7 /* largest L1 which this arch supports */ | ||
|
||
#if defined(__powerpc64__) && !defined(__ASSEMBLY__) | ||
struct ppc64_caches { | ||
u32 dsize; /* L1 d-cache size */ | ||
u32 dline_size; /* L1 d-cache line size */ | ||
u32 log_dline_size; | ||
u32 dlines_per_page; | ||
u32 isize; /* L1 i-cache size */ | ||
u32 iline_size; /* L1 i-cache line size */ | ||
u32 log_iline_size; | ||
u32 ilines_per_page; | ||
}; | ||
|
||
extern struct ppc64_caches ppc64_caches; | ||
#endif /* __powerpc64__ && ! __ASSEMBLY__ */ | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* _ASM_POWERPC_CACHE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.