menix-os / menix

A minimal and expandable Unix-like operating system
https://menix-os.org
GNU Lesser General Public License v2.1
14 stars 2 forks source link

Rewrite kmalloc and add a kvpalloc interface #19

Closed JanzenJohn closed 4 days ago

JanzenJohn commented 6 days ago

Menix Version

master

Feature type

Change existing functionality

Architecture

N/A

Affected Area

Main

Proposal

please add a function like kvpalloc (kernel virtual page alloc) which allows to allocate contiguous virtual pages, but does not guarantee physical pages to be contiguous. and maps that result to the requested virtual address

then implement kmalloc by running a slab allocator on pages acquired by kvpalloc

marv7000 commented 4 days ago

Fixed with 13c1c7016f378a17e3acb2b39031c48bebb07a17 and b680d359b239d29b6bff141818f371e182226f07