Message-ID: <4HAHYk$_DZ@smth.org>
Subject: Kernel start��循��������
Date: Sat, 12 Mar 2005 05:36:24 +0000
From: thracia@smth.org-SPAM.no (��������枪���)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.development.kernel.mbox.zip!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!63.223.20.72!sjc-c01.usenetserver.com!news.bylinux.net!maily.cic.tsinghua.edu.cn!SMTH
Newsgroups: cn.bbs.comp.unix.development.kernel
Organization: BBS 水木�华站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: KernelTech/n/M.1110605710.t0
Lines: 68
Xref: news.cnusenet.org cn.bbs.comp.unix.development.kernel:28721

linux kernel ver:2.4.17 with tpu patch

make 之����hitools��������一��

0c0083ac
0c0083b0
0c0083b4  dead loop

in System.map
..
0c008364 calibrate_delay
0c008490 readonly
..

���system.map�����拢�����calibrate_delay�����丫���c������
��/init/main.c��撸�

void __init calibrate_delay(void)
{
        unsigned long ticks, loopbit;
        int lps_precision = LPS_PREC;

        loops_per_jiffy = (1<<12);

        printk("Calibrating delay loop... ");
        while (loops_per_jiffy <<= 1) {
                /* wait for "start of" clock tick */
                ticks = jiffies;
                while (ticks == jiffies)
                        /* nothing */;
                /* Go .. */
                ticks = jiffies;
                __delay(loops_per_jiffy);
                ticks = jiffies - ticks;
                if (ticks)
                        break;
        }

/* Do a binary approximation to get loops_per_jiffy set to equal one clock
   (up to lps_precision bits) */
        loops_per_jiffy >>= 1;
        loopbit = loops_per_jiffy;
        while ( lps_precision-- && (loopbit >>= 1) ) {
                loops_per_jiffy |= loopbit;
                ticks = jiffies;
                while (ticks == jiffies);
                ticks = jiffies;
                __delay(loops_per_jiffy);
                if (jiffies != ticks)   /* longer than 1 tick */
                        loops_per_jiffy &= ~loopbit;
        }

/* Round the value and print it */
        printk("%lu.%02lu BogoMIPS\n",
                loops_per_jiffy/(500000/HZ),
                (loops_per_jiffy/(5000/HZ)) % 100);
}

������值��牵�����一��始��printk�耍�����应�������息�����冢��������氐����拥�时��
����没���魏味���,����������������������校准�映�...��sm dd?
�芨����示么��谢谢

--
    ���������希��涂��越��耍��多东������没��专�诺慕�学���系模���也��指�������时�����写��
    ���裕���准��姆��颍�源�开始������芄��玫�����募�����


�� ��源:��BBS 水木�华站 smth.org��[FROM: 219.224.143.*]