続々々 wd(4)

cold が 0 になるのは src/sys/kern/subr_autoconf.c:configure() で cpu_configure() の後か。じゃあ、probe/attach 中は cold != 0 だなぁ。

	/*
	 * Do the machine-dependent portion of autoconfiguration.  This
	 * sets the configuration machinery here in motion by "finding"
	 * the root bus.  When this function returns, we expect interrupts
	 * to be enabled.
	 */
	cpu_configure();

	/* Initialize SSP. */
	ssp_init();

	/*
	 * Now that we've found all the hardware, start the real time
	 * and statistics clocks.
	 */
	initclocks();

	cold = 0;	/* clocks are running, we're warm now! */
広告を非表示にする