drivers.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Drivers &amp; Buses | NebOS Architecture</title>
  7. <meta name="description" content="NebOS drivers: PCI enumeration, floppy/ATA/AHCI storage, the USB core with UHCI, OHCI, EHCI and xHCI, HID input, serial, board sensors and the panic path.">
  8. <link rel="icon" href="favicon.svg" type="image/svg+xml">
  9. <link rel="stylesheet" href="style.css">
  10. </head>
  11. <body>
  12. <a class="skip" href="#main">Skip to content</a>
  13. <header class="site-header">
  14. <a class="brand" href="index.html">
  15. <span class="brand-mark" aria-hidden="true"></span>
  16. <span>NebOS <span class="brand-sub">Architecture</span></span>
  17. </a>
  18. <nav class="site-nav" aria-label="Architecture sections">
  19. <a href="index.html">Overview</a>
  20. <a href="boot.html">Boot</a>
  21. <a href="memory.html">Memory</a>
  22. <a href="cpu.html">CPU</a>
  23. <a href="drivers.html" aria-current="page">Drivers</a>
  24. <a href="filesystems.html">Filesystems</a>
  25. <a href="graphics.html">Graphics</a>
  26. <a href="network.html">Network</a>
  27. <a href="userland.html">Userland</a>
  28. <a href="development.html">Development</a>
  29. </nav>
  30. </header>
  31. <main id="main" class="page">
  32. <div class="page-head">
  33. <p class="kicker">Drivers &amp; buses</p>
  34. <h1>Polled hardware, one vtable per bus.</h1>
  35. <p class="lede">
  36. Most NebOS drivers are polled rather than interrupt-driven: storage,
  37. USB and every NIC are serviced from process context. That trades
  38. latency and CPU time for simple, single-owner state and a kernel that
  39. stays easy to reason about on old hardware.
  40. </p>
  41. <div class="meta">
  42. <span class="pill">PCI enumeration</span>
  43. <span class="pill">FDC · PATA · SATA</span>
  44. <span class="pill">UHCI · OHCI · EHCI · xHCI</span>
  45. <span class="pill">PS/2 + USB HID</span>
  46. </div>
  47. </div>
  48. <nav class="toc" aria-label="On this page">
  49. <h2>On this page</h2>
  50. <ul>
  51. <li><a href="#inventory">Driver inventory</a></li>
  52. <li><a href="#pci">PCI &amp; discovery</a></li>
  53. <li><a href="#storage">Storage</a></li>
  54. <li><a href="#usb">USB stack</a></li>
  55. <li><a href="#hid">Input</a></li>
  56. <li><a href="#serial">Serial</a></li>
  57. <li><a href="#sensors">Sensors &amp; power</a></li>
  58. <li><a href="#rtc">Wall clock (RTC)</a></li>
  59. <li><a href="#panic">Panic screen</a></li>
  60. <li><a href="#limits">Limits</a></li>
  61. <li><a href="#sources">Source map</a></li>
  62. </ul>
  63. </nav>
  64. <section id="inventory">
  65. <h2>Driver inventory</h2>
  66. <p>
  67. Every driver in the tree is small enough to read in one sitting. The
  68. table below is the quickest way to find the one responsible for a
  69. device.
  70. </p>
  71. <div class="table-wrap">
  72. <table>
  73. <thead>
  74. <tr><th>Subsystem</th><th>Driver</th><th>Bus / access</th><th>Service model</th></tr>
  75. </thead>
  76. <tbody>
  77. <tr><td>Floppy</td><td><span class="file">disk.c</span></td><td>ISA FDC + DMA channel 2</td><td>IRQ 6; FAT operations set <code>sys_fs_busy</code></td></tr>
  78. <tr><td>PATA</td><td><span class="file">ata.c</span></td><td>Legacy ports or PCI native BARs</td><td>Polled PIO, DRQ wait per sector</td></tr>
  79. <tr><td>SATA</td><td><span class="file">ahci.c</span></td><td>PCI AHCI MMIO</td><td>Polled, READ/WRITE DMA EXT</td></tr>
  80. <tr><td>USB</td><td><span class="file">usb.c</span> + <span class="file">uhci.c</span> <span class="file">ohci.c</span> <span class="file">ehci.c</span> <span class="file">xhci.c</span></td><td>PCI I/O ports or MMIO</td><td>Polled; hotplug watcher in the WM loop</td></tr>
  81. <tr><td>Network</td><td><span class="file">e1000e.c</span> <span class="file">r8168.c</span> <span class="file">ne2000.c</span> <span class="file">asix.c</span></td><td>PCI or USB</td><td>Polled, one active receiver</td></tr>
  82. <tr><td>PS/2</td><td><span class="file">mouse.c</span>, <span class="file">io.c</span></td><td>i8042</td><td>IRQ 1 keyboard, IRQ 12 mouse; polling fallback</td></tr>
  83. <tr><td>Serial</td><td><span class="file">serial.c</span></td><td>16550 UART, COM1</td><td>IRQ 4 ring buffer + polled transmitter</td></tr>
  84. <tr><td>Thermal</td><td><span class="file">thermal.c</span></td><td>Intel DTS MSR</td><td>Sampled once a second from the scheduler tick</td></tr>
  85. <tr><td>Board sensors</td><td><span class="file">it87.c</span>, <span class="file">tpec.c</span></td><td>Super I/O, ThinkPad EC (temps, fan, battery, AC)</td><td>Polled; only the EC page selector is written, then restored</td></tr>
  86. <tr><td>Wall clock</td><td><span class="file">rtc.c</span></td><td>CMOS RTC ports <code>0x70/0x71</code></td><td>Read/write under the BKL; update-cycle retries and a 1970–2069 two-digit year window</td></tr>
  87. </tbody>
  88. </table>
  89. </div>
  90. </section>
  91. <section id="pci">
  92. <h2>PCI &amp; discovery</h2>
  93. <p>
  94. <span class="file">pci.c</span> walks bus/device/function and exposes
  95. BAR and capability access. The USB scan checks all functions: real
  96. PIIX3/PIIX4/VIA layouts put the USB function at 0:07.2 or 0:01.2, not
  97. 0:07.0. Controllers with unassigned BARs are ignored rather than
  98. driven at address zero.
  99. </p>
  100. <p>
  101. MMIO regions are mapped through <code>paging_map_mmio()</code>. PCI
  102. interrupts are disabled before touching MMIO, so every driver polls
  103. its own status registers. <code>lspci</code> lists every function;
  104. with a filter it prints BAR type, size and address details.
  105. </p>
  106. </section>
  107. <section id="storage">
  108. <h2>Storage</h2>
  109. <p>
  110. <span class="file">blkdev.c</span> is a small registry of block
  111. devices. Each device exposes sector read/write plus geometry; FAT and
  112. the format command sit above that interface and never talk to a
  113. controller directly. Devices are named <code>floppy0</code>,
  114. <code>ide0</code>, <code>sata0</code> and so on; partitions append
  115. <code>p1</code>, <code>p2</code>.
  116. </p>
  117. <figure class="figure">
  118. <svg viewBox="0 0 920 246" role="img" aria-labelledby="storage-title storage-desc">
  119. <title id="storage-title">Storage software layers</title>
  120. <desc id="storage-desc">The VFS and format tools use a block-device registry, which dispatches to the floppy, ATA PIO or AHCI driver, then to the physical disk.</desc>
  121. <rect class="svg-box blue" x="40" y="30" width="230" height="62" rx="9"/>
  122. <text class="svg-text" x="60" y="57">VFS · FAT · format</text>
  123. <text class="svg-sub" x="60" y="77">files, not sectors</text>
  124. <rect class="svg-box accent" x="345" y="30" width="230" height="62" rx="9"/>
  125. <text class="svg-text" x="365" y="57">blkdev registry</text>
  126. <text class="svg-sub" x="365" y="77">sector read / write + geometry</text>
  127. <rect class="svg-box" x="650" y="30" width="230" height="62" rx="9"/>
  128. <text class="svg-text" x="670" y="57">driver</text>
  129. <text class="svg-sub" x="670" y="77">FDC · ATA · AHCI</text>
  130. <path class="svg-line blue" d="M270 61h67"/>
  131. <path class="svg-line blue" d="M330 55l7 6-7 6"/>
  132. <path class="svg-line accent" d="M575 61h67"/>
  133. <path class="svg-line accent" d="M635 55l7 6-7 6"/>
  134. <rect class="svg-box green" x="40" y="142" width="230" height="62" rx="9"/>
  135. <text class="svg-text" x="60" y="169">floppy.img</text>
  136. <text class="svg-sub" x="60" y="189">CHS + ISA DMA</text>
  137. <rect class="svg-box green" x="345" y="142" width="230" height="62" rx="9"/>
  138. <text class="svg-text" x="365" y="169">ide0 / ide0pN</text>
  139. <text class="svg-sub" x="365" y="189">PIO, legacy or native BARs</text>
  140. <rect class="svg-box green" x="650" y="142" width="230" height="62" rx="9"/>
  141. <text class="svg-text" x="670" y="169">sata0 / sata0pN</text>
  142. <text class="svg-sub" x="670" y="189">AHCI port index</text>
  143. <path class="svg-line" d="M175 92v42"/>
  144. <path class="svg-line" d="M169 126l6 7 6-7"/>
  145. <path class="svg-line" d="M460 92v42"/>
  146. <path class="svg-line" d="M454 126l6 7 6-7"/>
  147. <path class="svg-line" d="M765 92v42"/>
  148. <path class="svg-line" d="M759 126l6 7 6-7"/>
  149. </svg>
  150. <figcaption>
  151. <strong>One narrow waist.</strong> Filesystems and tools only see
  152. <code>struct blk_dev</code>. The floppy still needs IRQ 6, but ATA
  153. and AHCI are polled; a FAT operation takes <code>sys_fs_busy</code>
  154. so the scheduler does not switch away mid-transfer.
  155. </figcaption>
  156. </figure>
  157. <h3>Floppy</h3>
  158. <p>
  159. <span class="file">disk.c</span> drives the 8272-compatible FDC
  160. through ISA DMA channel 2, with the single-sector DMA buffer at
  161. <code>0x4000</code>. Retries handle the usual real-hardware flakiness.
  162. The second floppy slot can hold <code>root.img</code>.
  163. </p>
  164. <h3>PATA</h3>
  165. <p>
  166. <span class="file">ata.c</span> uses the legacy command block or the
  167. PCI IDE interface's native BARs. Multi-sector PIO waits for DRQ
  168. before every sector because drives drop it between sectors; it polls
  169. the command-block status rather than the alternate-status BAR, and
  170. falls back to single-sector commands when a bridge leaves DRQ pending.
  171. </p>
  172. <h3>SATA/AHCI</h3>
  173. <p>
  174. <span class="file">ahci.c</span> drives the first AHCI controller
  175. only, with no IRQs and no NCQ. It does COMRESET, IDENTIFY through the
  176. shared <code>ata_identify_parse()</code>, and READ/WRITE DMA EXT
  177. through a page-allocated bounce buffer. A disk added after boot needs
  178. a rescan; there is no COMRESET hotplug.
  179. </p>
  180. </section>
  181. <section id="usb">
  182. <h2>USB stack</h2>
  183. <p>
  184. <span class="file">usb.c</span> is controller-agnostic. It handles
  185. enumeration, descriptor parsing, hub recursion, bus scans, per-controller
  186. addresses, the hotplug watcher and interrupt-IN consumers. Each host
  187. controller implements the <code>usb_hcd_ops</code> vtable in
  188. <span class="file">usb_hcd.h</span>.
  189. </p>
  190. <figure class="figure">
  191. <svg viewBox="0 0 920 300" role="img" aria-labelledby="usb-title usb-desc">
  192. <title id="usb-title">USB controller topology</title>
  193. <desc id="usb-desc">EHCI handles high-speed root ports, UHCI and OHCI handle low and full speed devices, xHCI handles USB2 root ports. All feed the same USB core and HID layer.</desc>
  194. <rect class="svg-box accent" x="30" y="24" width="200" height="64" rx="9"/>
  195. <text class="svg-text" x="50" y="50">EHCI</text>
  196. <text class="svg-sub" x="50" y="70">high-speed root ports</text>
  197. <rect class="svg-box blue" x="252" y="24" width="200" height="64" rx="9"/>
  198. <text class="svg-text" x="272" y="50">UHCI</text>
  199. <text class="svg-sub" x="272" y="70">full/low speed · 1 instance</text>
  200. <rect class="svg-box blue" x="474" y="24" width="200" height="64" rx="9"/>
  201. <text class="svg-text" x="494" y="50">OHCI</text>
  202. <text class="svg-sub" x="494" y="70">full/low speed · up to 4</text>
  203. <rect class="svg-box green" x="696" y="24" width="194" height="64" rx="9"/>
  204. <text class="svg-text" x="716" y="50">xHCI</text>
  205. <text class="svg-sub" x="716" y="70">USB2 root ports only</text>
  206. <path class="svg-line accent" d="M130 88v40h330v28"/>
  207. <path class="svg-line blue" d="M352 88v68"/>
  208. <path class="svg-line blue" d="M574 88v68"/>
  209. <path class="svg-line green" d="M793 88v40H460v28"/>
  210. <rect class="svg-box" x="300" y="156" width="320" height="58" rx="9"/>
  211. <text class="svg-text" x="320" y="181">usb core</text>
  212. <text class="svg-sub" x="320" y="201">enumeration · hubs · hotplug · interrupt-IN slots</text>
  213. <path class="svg-line" d="M460 214v34"/>
  214. <path class="svg-line" d="M454 240l6 7 6-7"/>
  215. <rect class="svg-box" x="300" y="248" width="320" height="44" rx="9"/>
  216. <text class="svg-text" x="320" y="275">usbhid · keyboard + mouse</text>
  217. </svg>
  218. <figcaption>
  219. <strong>Companions are not optional.</strong> EHCI is scanned first
  220. so its port resets can hand non-high-speed devices back to a
  221. companion. There is no transaction translator: a low/full-speed
  222. device behind a high-speed hub is invisible to EHCI.
  223. </figcaption>
  224. </figure>
  225. <div class="table-wrap">
  226. <table>
  227. <thead>
  228. <tr><th>Controller</th><th>Transport</th><th>Instances</th><th>Implementation notes</th></tr>
  229. </thead>
  230. <tbody>
  231. <tr><td>UHCI</td><td>PCI I/O ports</td><td>1</td><td>Frame list at <code>0x3000</code>; control QH plus one QH per interrupt slot.</td></tr>
  232. <tr><td>OHCI</td><td>PCI MMIO</td><td>up to 4</td><td>HCCA from the page allocator, static ED/TD sets, TDs start at <code>CC = NotAccessed</code>.</td></tr>
  233. <tr><td>EHCI</td><td>PCI MMIO</td><td>up to 4</td><td>Async QH/qTD schedule, page-allocated descriptors, polling only, no periodic list.</td></tr>
  234. <tr><td>xHCI</td><td>PCI MMIO</td><td>—</td><td>USB2 root ports only; USB3 SuperSpeed devices are not handled.</td></tr>
  235. </tbody>
  236. </table>
  237. </div>
  238. <p>
  239. Hubs are class-9 devices: <code>usb.c</code> sets their configuration,
  240. powers every downstream port (honouring <code>bPwrOn2PwrGood</code>),
  241. resets and waits for <code>PORT_ENABLE</code>, then enumerates
  242. recursively. This is what makes the X201's internal PCH hubs work.
  243. Hotplug watches root ports; a device behind a hub is only found when a
  244. full scan runs (<code>lsusb</code> also bumps the USB generation so
  245. <code>usbhid</code> re-attaches).
  246. </p>
  247. </section>
  248. <section id="hid">
  249. <h2>Input</h2>
  250. <p>
  251. <span class="file">usbhid.c</span> gives every HID class-3 interface
  252. with an interrupt-IN endpoint one of the six USB interrupt slots. Boot
  253. interfaces (subclass 1, protocol 1/2) are used as-is; other class-3
  254. interfaces are classified by reading their HID report descriptor.
  255. Composite receivers and several devices can coexist; mouse reports
  256. from all slots are merged.
  257. </p>
  258. <ul>
  259. <li><strong>Mouse.</strong> Three-byte boot reports: buttons in <code>b0 &amp; 7</code>, signed <code>dx/dy</code>. HID's +y is flipped to the PS/2 convention.</li>
  260. <li><strong>Keyboard.</strong> Eight-byte boot reports (modifier + six keycodes). Reports are diffed and decoded through a HID-usage → scancode-set-1 table, then injected with <code>io_inject_scancode()</code>.</li>
  261. <li><strong>Repeat.</strong> A boot keyboard only reports changes, so <code>io.c</code> adds software typematic repeat (500 ms delay, 33 ms rate).</li>
  262. <li><strong>PS/2.</strong> The i8042 path shares the cursor and keyboard code; the BIOS legacy USB emulation is disabled because the kernel owns the devices.</li>
  263. </ul>
  264. <p>
  265. <code>mouseinfo</code> shows the active backend and whether a USB
  266. keyboard is attached. Headless regression tests inject mouse motion
  267. and keys through QMP and verify the result with screen dumps.
  268. </p>
  269. </section>
  270. <section id="serial">
  271. <h2>Serial</h2>
  272. <p>
  273. <span class="file">serial.c</span> drives the 16550 at COM1, 115200
  274. 8N1, with an IRQ-driven receive ring buffer. It is used for the boot
  275. trace, the netlog mirror source, the <code>dbg</code> monitor and the
  276. <code>KXE2</code> kexec receiver.
  277. </p>
  278. <p>
  279. The transmitter is polled, so a machine without a serial port still
  280. boots normally. <code>serial_puthex</code> and
  281. <code>serial_putdec</code> are the structured dump helpers used by
  282. drivers.
  283. </p>
  284. </section>
  285. <section id="sensors">
  286. <h2>Sensors, power &amp; thermals</h2>
  287. <ul>
  288. <li><strong>DTS.</strong> <span class="file">thermal.c</span> reads <code>IA32_THERM_STATUS</code> on an allowlist of Core/Core 2, Nehalem/Westmere and Bonnell models. TjMax comes from <code>IA32_TEMPERATURE_TARGET</code> on Nehalem and later; Bonnell uses a table.</li>
  289. <li><strong>IT87xx.</strong> <span class="file">it87.c</span> reads the Super I/O temperatures and fan tachometers on the ASUS AT3IONT-I. Nothing is written to fan control.</li>
  290. <li><strong>ThinkPad EC.</strong> <span class="file">tpec.c</span> is gated on an SMBIOS Lenovo/IBM match and reads temperatures and fan mode through ports <code>0x62/0x66</code>. It drains pending output bytes and uses bounded waits. Battery/AC state comes from <code>0x38/0x39</code> (present, charging, discharging), <code>0x46</code> bit 4 (AC online), and the page-selected 16-byte window at <code>0xA0..0xAF</code>; <code>0x81</code> selects the battery and page (0 dynamic, 1 mode, 2 design, 5 manufacturer, 6 model). That page selector is the only EC write, and it is restored when it changed.</li>
  291. <li><strong>MTRRs.</strong> <span class="file">mtrr.c</span> manages write-combining ranges for the framebuffer and reports the effective mapping.</li>
  292. </ul>
  293. <p>
  294. <code>sensors</code> prints DTS values on the 90/100/125 °C scales,
  295. board sensors and EC registers; <code>powerinfo</code> prints the
  296. AC adapter and battery state from <code>SYS_POWER_INFO</code>;
  297. <code>power</code> prints ratios, effective MHz and C-state
  298. residency. The WM top bar shows the first present battery
  299. with a valid percentage next to the CPU temperature.
  300. </p>
  301. </section>
  302. <section id="rtc">
  303. <h2>Wall clock (RTC)</h2>
  304. <p>
  305. <span class="file">rtc.c</span> talks to the MC146818-compatible
  306. CMOS clock through ports <code>0x70/0x71</code>. Reads honour the
  307. register-B BCD/binary and 12/24-hour modes, retry when the
  308. update-in-progress bit is set, and decode the hour's PM flag. The
  309. RTC only stores a two-digit year, so the kernel expands it over a
  310. 1970–2069 window (70–99 → 1900s, 00–69 → 2000s); a board whose
  311. dead battery left 1980 or 1990 therefore reads correctly instead of
  312. being pushed a century forward. Writes validate the calendar (leap
  313. years included), raise the register-B SET bit, preserve the mode
  314. bits and write the computed weekday. On ACPI machines the FADT
  315. century register (offset 108, normally CMOS <code>0x32</code>) is
  316. written as well, so the firmware and other operating systems see
  317. the intended century; boards without ACPI get no arbitrary NVRAM
  318. write.
  319. </p>
  320. <p>
  321. <code>SYS_RTC_GET</code>/<code>SYS_RTC_SET</code> (104/105) expose
  322. the full <code>struct sys_datetime</code>; the older
  323. <code>SYS_RTC_HMS</code>/<code>SYS_RTC_DATETIME</code> calls remain
  324. the small read-only views. The WM’s top-bar date/time is a click
  325. target that opens <code>bin/settime</code>, and the <code>date</code>
  326. command prints the same clock in the classic Linux format.
  327. </p>
  328. </section>
  329. <section id="panic">
  330. <h2>Panic screen</h2>
  331. <p>
  332. On a ring-0 fault, <span class="file">panic.c</span> draws straight
  333. into the framebuffer — bypassing the shadow buffer and the WM — and
  334. mirrors the same data to COM1 before halting. The banner includes the
  335. vector and error code, GPRs, control registers, current pid/name,
  336. uptime, instruction bytes and stack return-address candidates in the
  337. kernel image.
  338. </p>
  339. <p>
  340. Faults from ring 3 do not halt: the process is killed with a short
  341. message in its terminal and serial log. There is no interactive
  342. debugger on screen; the <code>dbg</code> kernel command drives a
  343. serial monitor instead.
  344. </p>
  345. </section>
  346. <section id="limits">
  347. <h2>Limits</h2>
  348. <ul>
  349. <li><strong>Polling.</strong> USB, storage and network drivers consume CPU time while waiting; there is no IRQ-driven data path outside PS/2, serial and the PIT.</li>
  350. <li><strong>EHCI.</strong> High-speed root ports only; no split transactions for low/full-speed devices behind a high-speed hub.</li>
  351. <li><strong>xHCI.</strong> USB2 root ports only; USB3 SuperSpeed devices are not handled.</li>
  352. <li><strong>HID.</strong> Report IDs are not handled, absolute pointers/tablets are ignored, and there is no wheel support.</li>
  353. <li><strong>AHCI.</strong> First controller only, no hotplug after boot, disks above 2 TB are clamped to 32-bit LBA.</li>
  354. <li><strong>Storage serialization.</strong> A FAT/floppy operation sets <code>sys_fs_busy</code> and stalls process switching for its duration; the PIT keeps ticking.</li>
  355. </ul>
  356. </section>
  357. <section id="sources">
  358. <h2>Source map</h2>
  359. <ul class="filelist">
  360. <li><code>pci.c</code>, <code>pci.h</code> — enumeration</li>
  361. <li><code>blkdev.c</code> — block registry</li>
  362. <li><code>disk.c</code> — floppy / DMA</li>
  363. <li><code>ata.c</code>, <code>ahci.c</code> — PATA/SATA</li>
  364. <li><code>usb.c</code>, <code>usb_hcd.h</code> — USB core</li>
  365. <li><code>uhci.c</code>, <code>ohci.c</code>, <code>ehci.c</code>, <code>xhci.c</code></li>
  366. <li><code>usbhid.c</code>, <code>mouse.c</code>, <code>io.c</code> — input</li>
  367. <li><code>serial.c</code>, <code>serial_ring_buf.c</code></li>
  368. <li><code>thermal.c</code>, <code>it87.c</code>, <code>tpec.c</code>, <code>mtrr.c</code></li>
  369. <li><code>rtc.c</code> — CMOS wall clock read/write</li>
  370. <li><code>panic.c</code>, <code>timer.S</code> — fatal exceptions</li>
  371. </ul>
  372. </section>
  373. </main>
  374. <footer class="site-footer">
  375. <div class="inner">
  376. <p><strong>NebOS 0.2.0</strong> · Architecture documentation · <a href="index.html">overview</a></p>
  377. <p>Maintain alongside <code>AGENTS.md</code> and the source files listed on each page.</p>
  378. </div>
  379. </footer>
  380. </body>
  381. </html>