From 9fc6764fa762f896fcfaf9f40d3eb39b53a81c00 Mon Sep 17 00:00:00 2001 From: traits Date: Mon, 5 Sep 2011 17:37:07 +0800 Subject: refs #55. Added DTB_ENTRIES into dynamic arch setting parameters. Now, it can read DTB_ENTRIES on runtime. --- cpuid_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpuid_x86.c') diff --git a/cpuid_x86.c b/cpuid_x86.c index 6e3e74f82..b68f53573 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -1393,7 +1393,7 @@ void get_cpuconfig(void){ if (info.size > 0) { printf("#define DTB_SIZE %d\n", info.size * 1024); printf("#define DTB_ASSOCIATIVE %d\n", info.associative); - printf("#define DTB_ENTRIES %d\n", info.linesize); + printf("#define DTB_DEFAULT_ENTRIES %d\n", info.linesize); } features = get_cputype(GET_FEATURE); @@ -1422,7 +1422,7 @@ void get_cpuconfig(void){ features = get_coretype(); if (features > 0) printf("#define CORE_%s\n", corename[features]); } else { - printf("#define DTB_ENTRIES 16\n"); + printf("#define DTB_DEFAULT_ENTRIES 16\n"); printf("#define L1_CODE_SIZE 8192\n"); printf("#define L1_DATA_SIZE 8192\n"); printf("#define L2_SIZE 0\n"); -- cgit v1.2.3