include: one folder per subsystem, and includes that name it
Sixty-five headers sat side by side in include/, so `#include "irq.h"` said nothing about where irq.h was or what it belonged to, and errno.h, stat.h and fcntl.h at the top shadowed the system's for any host tool built with -I./include. They are in folders now -- arch/ core/ fs/ dev/ gfx/ net/ uapi/ (and ldls/ for the Linux driver layer) -- and every include names the folder, as Linux's do: "core/proc.h". Done mechanically and checked the hard way: the kernel built from this tree disassembles identically to the one built from the tree before it. The full image boots, and userland is the same set of programs. Paths in docs and comments follow; docs/guides/layout.md has a table of what is where, and tools/fix-includes.py rewrites old-style includes from the folders in the tree, for code written before this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
This commit is contained in:
parent
0e39e711f1
commit
a1c965da1e
267 changed files with 1560 additions and 1440 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Keyboard layouts. See include/keymap.h for the interface and its limits.
|
||||
// Keyboard layouts. See include/dev/keymap.h for the interface and its limits.
|
||||
//
|
||||
// Every table is indexed by set-1 scancode, with the E0-prefixed keys folded
|
||||
// into 0x80..0xFF by kbd.c before the lookup -- the same numbering the single
|
||||
|
|
@ -9,10 +9,10 @@
|
|||
// exists: `ą` is U+0105 and does not fit in a byte, and a Polish layout that
|
||||
// cannot type `ą` is not one.
|
||||
|
||||
#include "types.h"
|
||||
#include "defs.h"
|
||||
#include "kbd.h"
|
||||
#include "keymap.h"
|
||||
#include "core/types.h"
|
||||
#include "core/defs.h"
|
||||
#include "dev/kbd.h"
|
||||
#include "dev/keymap.h"
|
||||
|
||||
// Shared by every layout that does not move the navigation block, which is
|
||||
// all of them -- the arrow keys are not a national matter. Merged into each
|
||||
|
|
@ -101,7 +101,7 @@ static const uint32 pl_shiftaltgr[256] = {
|
|||
// keyboard does not have at all -- carries < > |.
|
||||
//
|
||||
// The acute (0x0D) and circumflex (0x29) keys are dead on a real German
|
||||
// layout. Here they type the accent on its own. See include/keymap.h.
|
||||
// layout. Here they type the accent on its own. See include/dev/keymap.h.
|
||||
|
||||
static const uint32 de_plain[256] = {
|
||||
NO, 0x1B, '1', '2', '3', '4', '5', '6', // 0x00
|
||||
|
|
|
|||
Loading…
Reference in a new issue