Date: Wed, 2 May 2007 13:17:05 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 119150 for review Message-ID: <200705021317.l42DH59b011231@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119150 Change 119150 by gonzo@gonzo_jeeves on 2007/05/02 13:16:59 o Fill .bss and .sbss segments with zeroes. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/machdep.c#29 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/machdep.c#29 (text+ko) ==== @@ -79,6 +79,7 @@ int clocks_running = 0; long realmem = 0; +extern int *edata; extern int *end; static struct pcpu pcpu0; @@ -471,6 +472,12 @@ void platform_start(int argc, char **argv) { + vm_offset_t kernend; + + /* clear the BSS and SBSS segments */ + kernend = round_page((vm_offset_t)&end); + memset(&edata, 0, kernend - (vm_offset_t)(&edata)); + cninit(); mips_init(); tick_init_params();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705021317.l42DH59b011231>