enhanced test

This commit is contained in:
Paul Pan 2024-01-10 22:02:04 +08:00
parent 327f43cfb2
commit 2bba9311e3
2 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,7 @@ int n105_playground_test_cache() {
// clear
puts(PREFIX "cache: clear");
for (volatile unsigned *ptr = cached_bgn; ptr < cached_end; ptr++)
*ptr = 0;
*ptr = 0x12345678;
// cache
puts(PREFIX "cache: blast clear");

View File

@ -86,12 +86,13 @@ void probe_pcache(void) {
unsigned long icache_size;
unsigned long dcache_size;
struct cpuinfo_mips *c = &current_cpu_data;
volatile struct cpuinfo_mips *c = &current_cpu_data;
unsigned int config = read_c0_config();
unsigned long config1;
unsigned int lsize;
puts("init: probing cache");
putstr("init: current_cpu_data: "), puthex((unsigned)c), putchar('\n');
config1 = read_c0_config1();