Matthew Leach
465fcb7acb
libkenrel: memory: move paging-related modules to paging module
...
Move PtePermissions to paging module which is feature-gated behind
`paging`.
Also move all AddressSpace related functionality behind the `proc_vm`
feature gate.
2026-04-16 21:22:16 +01:00
Matthew Leach
8ec17724d9
libkernel: add documentation and cargo metadata
...
Fix up missing documentaiton and add metadata to the cargo definition.
2026-04-13 11:37:57 -07:00
Ashwin Naren
5da64ab419
memory info in /proc/pid/stat
2026-03-30 19:48:29 -07:00
Matthew Leach
87fe041ba0
procfs: implement /proc/<PID>/maps
...
Implement the `maps` file which shows a process's VMA entries. Example
output:
```
[root@moss-machine /]# cat /proc/1/maps
500000000000-500000117000 r-xp 0000000000 /bin/bash
50000012b000-500000130000 r--p 000011b000 /bin/bash
500000130000-50000013e000 rw-p 0000120000 /bin/bash
700000000000-70000002b000 r-xp 0000000000 /lib/ld-linux-aarch64.so.1
70000003e000-700000040000 r--p 000002e000 /lib/ld-linux-aarch64.so.1
700000040000-700000042000 rw-p 0000030000 /lib/ld-linux-aarch64.so.1
7fffff510000-7fffff585000 r-xp 0000000000 /usr/lib/libncursesw.so.6
7fffff585000-7fffff59b000 ---p 0000075000 /usr/lib/libncursesw.so.6
7fffff59b000-7fffff5a0000 r--p 000007b000 /usr/lib/libncursesw.so.6
7fffff5a0000-7fffff5a1000 rw-p 0000080000 /usr/lib/libncursesw.so.6
7fffff5b0000-7fffff760000 r-xp 0000000000 /usr/lib/libc.so.6
7fffff760000-7fffff76d000 ---p 00001b0000 /usr/lib/libc.so.6
7fffff76d000-7fffff770000 r--p 00001bd000 /usr/lib/libc.so.6
7fffff770000-7fffff772000 rw-p 00001c0000 /usr/lib/libc.so.6
7fffff772000-7fffff779000 rw-p 0000000000
7fffff780000-7fffff7d9000 r-xp 0000000000 /usr/lib/libreadline.so.8
7fffff7d9000-7fffff7ed000 ---p 0000059000 /usr/lib/libreadline.so.8
7fffff7ed000-7fffff7f0000 r--p 000005d000 /usr/lib/libreadline.so.8
7fffff7f0000-7fffff7f6000 rw-p 0000060000 /usr/lib/libreadline.so.8
7fffff7f6000-7fffff7fb000 rw-p 0000000000
7fffff800000-800000063000 rw-p 0000000000 [stack]
```
2026-01-27 06:10:43 +00:00
Ashwin Naren
f0771dde4f
exec with interpreter
2026-01-06 08:52:52 -08:00
Matthew Leach
825b3d7547
libkernel: mem: brk: return non-aligned break
...
Determine whether the program break needs extending with aligned logic,
but always return the requested, non-aligned, address.
Use `brk_addr` in unit tests instead.
2025-11-28 20:09:05 +00:00
Matthew Leach
ca6fdd0da5
Initial Commit
...
Initial commit of arm64 bring-up code, kernel core (libkernel) and build
infrastructure.
2025-11-16 20:15:01 +00:00