commit 3bac6f2a5f43885bd5ef44f59869d5c23e5bc972 Author: Aaron LI <a...@aaronly.me> Date: Tue Jun 8 12:52:46 2021 +0800
test/nvmm/demo: Make 'smallkern' more self-contained Provide local 'asm.h' and 'trap.h' headers (derived from NetBSD), extract necessary PTE_* and PSL_* defines, making 'smallkern' much more self-contained, which greatly reduces the needed modifications for porting it to DragonFly. Moreover, it helps to keep the ported code working on both operating systems. Summary of changes: .../fake_sbrk.S => test/nvmm/demo/smallkern/asm.h | 88 ++++++++++------------ test/nvmm/demo/smallkern/locore.S | 14 ++-- test/nvmm/demo/smallkern/trap.S | 12 +-- sys/sys/reg.h => test/nvmm/demo/smallkern/trap.h | 61 ++++++++------- 4 files changed, 83 insertions(+), 92 deletions(-) copy lib/libc/x86_64/sys/fake_sbrk.S => test/nvmm/demo/smallkern/asm.h (62%) copy sys/sys/reg.h => test/nvmm/demo/smallkern/trap.h (57%) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3bac6f2a5f43885bd5ef44f59869d5c23e5bc972 -- DragonFly BSD source repository