CPU_CONFIGURE(9)
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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2002 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms