enhanced test
This commit is contained in:
parent
327f43cfb2
commit
2bba9311e3
@ -77,7 +77,7 @@ int n105_playground_test_cache() {
|
|||||||
// clear
|
// clear
|
||||||
puts(PREFIX "cache: clear");
|
puts(PREFIX "cache: clear");
|
||||||
for (volatile unsigned *ptr = cached_bgn; ptr < cached_end; ptr++)
|
for (volatile unsigned *ptr = cached_bgn; ptr < cached_end; ptr++)
|
||||||
*ptr = 0;
|
*ptr = 0x12345678;
|
||||||
|
|
||||||
// cache
|
// cache
|
||||||
puts(PREFIX "cache: blast clear");
|
puts(PREFIX "cache: blast clear");
|
||||||
|
@ -86,12 +86,13 @@ void probe_pcache(void) {
|
|||||||
unsigned long icache_size;
|
unsigned long icache_size;
|
||||||
unsigned long dcache_size;
|
unsigned long dcache_size;
|
||||||
|
|
||||||
struct cpuinfo_mips *c = ¤t_cpu_data;
|
volatile struct cpuinfo_mips *c = ¤t_cpu_data;
|
||||||
unsigned int config = read_c0_config();
|
unsigned int config = read_c0_config();
|
||||||
unsigned long config1;
|
unsigned long config1;
|
||||||
unsigned int lsize;
|
unsigned int lsize;
|
||||||
|
|
||||||
puts("init: probing cache");
|
puts("init: probing cache");
|
||||||
|
putstr("init: current_cpu_data: "), puthex((unsigned)c), putchar('\n');
|
||||||
|
|
||||||
config1 = read_c0_config1();
|
config1 = read_c0_config1();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user