From: NIIBE Y. <gn...@m1...> - 2001-08-06 06:29:26
|
Using serial console, sometimes we see garbage data at the beginning. The cause is udelay in the initialization routine of sh-sci.c. The initialization will be called before the calibration of loops_per_jiffy. I put big value there. * arch/sh/kernel/setup.c (boot_cpu_data): Let have initial value for loops_per_jiffy. Index: arch/sh/kernel/setup.c =================================================================== RCS file: /cvsroot/linuxsh/kernel/arch/sh/kernel/setup.c,v retrieving revision 1.29 diff -u -p -r1.29 setup.c --- arch/sh/kernel/setup.c 2001/07/24 01:24:28 1.29 +++ arch/sh/kernel/setup.c 2001/08/06 06:17:25 @@ -47,7 +47,12 @@ * Machine setup.. */ -struct sh_cpuinfo boot_cpu_data = { CPU_SH_NONE, 0, }; +/* + * Initialize loops_per_jiffy as 10000000 (1000MIPS). + * This value will be used at the very early stage of serial setup. + * The bigger value means no problem. + */ +struct sh_cpuinfo boot_cpu_data = { CPU_SH_NONE, 0, 10000000, }; struct screen_info screen_info; unsigned char aux_device_present = 0xaa; -- |