add generic kremap for kernel remapping
authorLunaixsky <lunaixsky@qq.com>
Sun, 29 Sep 2024 15:55:55 +0000 (16:55 +0100)
committerLunaixsky <lunaixsky@qq.com>
Sun, 29 Sep 2024 20:00:25 +0000 (21:00 +0100)
commit3164991854344469bc3a9e8afd41ffd90f11a93f
tree0960d04b0aecee9bcfd3998d40fbd5547e7b8d5d
parent34f6af4f61e0eec9c96113e07f140b609b4113c8
add generic kremap for kernel remapping

* add generic utility to allocate pagetable from static pool for initial
  mmu setup
* fix incorrect pte advancement in set_ptes_contig
* always dump the configured headers when performing `make config`
* add custom qemu trace event for logging pagefaults in x86
* refactor the generic parts of bstage.h to asm-generic/boot_stage.h
* make the rootfs accessible if `make root` is invoked directly from
  sudo
19 files changed:
lunaix-os/arch/generic/LBuild
lunaix-os/arch/generic/includes/asm-generic/boot_stage.h [moved from lunaix-os/arch/x86/includes/sys/boot/bstage.h with 76% similarity]
lunaix-os/arch/generic/includes/asm-generic/init_pagetable.h [new file with mode: 0644]
lunaix-os/arch/generic/includes/asm-generic/muldiv64.h
lunaix-os/arch/generic/kremap.c [new file with mode: 0644]
lunaix-os/arch/x86/boot/boot_helper.c
lunaix-os/arch/x86/boot/i386/boot32.S
lunaix-os/arch/x86/boot/i386/kremap32.c
lunaix-os/arch/x86/boot/kpt_setup.c
lunaix-os/arch/x86/boot/mb_parser.c
lunaix-os/arch/x86/boot/x86_64/kremap64.c
lunaix-os/arch/x86/includes/asm/boot_stage.h [new file with mode: 0644]
lunaix-os/arch/x86/includes/asm/variants/mempart32.h
lunaix-os/arch/x86/includes/sys/boot/archinit.h
lunaix-os/includes/lunaix/mm/pagetable.h
lunaix-os/includes/lunaix/mm/vmm.h
lunaix-os/scripts/build-tools/luna_build.py
lunaix-os/scripts/mkrootfs
lunaix-os/scripts/qemus/qemu_x86_dev.json