CPU_CONFIGURE(9)

πŸ“¦ version 11.0, in nixpkgs unstable

okay so bestie, welcome to the CPU_CONFIGURE(9) manual page β€” it lives in the Kernel Developer’s Manual, and it’s all about machine-dependent device autoconfiguration. let’s get into it πŸ’…

πŸŽ€ NAME πŸŽ€

cpu_configure β€” machine-dependent device autoconfiguration. that’s the whole vibe, no cap.

✨ SYNOPSIS ✨

the include and signature are literally:

#include <sys/systm.h>

void
cpu_configure(void);

πŸ’– DESCRIPTION πŸ’–

The machine-dependent cpu_configure() gets called during system bootstrap to perform the machine-dependent portion of device autoconfiguration. It sets the configuration machinery in motion by finding the root bus ("mainbus").

When this function returns, interrupts must be enabled.

🚨 vibe check: that interrupts-must-be-enabled thing is a hard requirement, bestie. not optional.

The following tasks are performed by cpu_configure():

  • initialize soft interrupts (see softint(9));
  • initialize CPU interrupts and SPLs (see spl(9));
  • call config_rootfound() for "mainbus"; and
  • complete any initialization deferred from cpu_startup(9).

🌈 SEE ALSO 🌈


okay bye bestie β€” this page is brought to you by Debian, dated April 13, 2010 πŸ’…βœ¨

πŸ“¦ where this page comes from