diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
commit | f46ab8ca2050ee77edf6e6b979875426bdaf29dc (patch) | |
tree | 1877f76c37adc4c7f7ea98a24f2cd1a61432ac63 /mem | |
parent | d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (diff) | |
download | jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.gz jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.bz2 jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.zip |
fix incorrect tss rsp assignment
Diffstat (limited to 'mem')
-rw-r--r-- | mem/buddymap.d | 2 | ||||
-rw-r--r-- | mem/memory.h | 9 | ||||
-rw-r--r-- | mem/phys.d | 1 | ||||
-rw-r--r-- | mem/slab.d | 2 |
4 files changed, 9 insertions, 5 deletions
diff --git a/mem/buddymap.d b/mem/buddymap.d deleted file mode 100644 index 7132cfe..0000000 --- a/mem/buddymap.d +++ /dev/null @@ -1,2 +0,0 @@ -mem/buddymap.o: mem/buddymap.c mem/buddymap.h mem/memory.h mem/slab.h \ - lib/string.h boot/boot.h io/log.h diff --git a/mem/memory.h b/mem/memory.h index eb30217..3956852 100644 --- a/mem/memory.h +++ b/mem/memory.h @@ -32,6 +32,15 @@ bool mem_check_ptr(const void *ptr); * @param user flag to mark page as user accessable*/ void mem_ensure_range(uintptr_t from, uintptr_t to, bool rw, bool user); +/**Make sure the range indicated is available in memory for specified pd + * If necessary, allocate new pages using the passed flags + * @param pd pointer to page directory to edit + * @param from start of the range. + * @param to end of the range. + * @param rw flag to mark page is writeable. + * @param user flag to mark page as user accessable*/ +void mem_ensure_range_for(void *pd, uintptr_t from, uintptr_t to, bool rw, bool user); + void mem_slab_setup(void); void mem_slabcache_new(struct SlabCache *cache, char *name, size_t objsize); diff --git a/mem/phys.d b/mem/phys.d deleted file mode 100644 index 192b714..0000000 --- a/mem/phys.d +++ /dev/null @@ -1 +0,0 @@ -mem/phys.o: mem/phys.c mem/memory.h mem/slab.h mem/buddymap.h diff --git a/mem/slab.d b/mem/slab.d deleted file mode 100644 index 5cffd4c..0000000 --- a/mem/slab.d +++ /dev/null @@ -1,2 +0,0 @@ -mem/slab.o: mem/slab.c mem/slab.h mem/memory.h lib/format.h lib/string.h \ - lib/jove.h io/log.h |