diff options
author | dzwdz | 2021-09-05 18:55:32 +0200 |
---|---|---|
committer | dzwdz | 2021-09-05 18:55:32 +0200 |
commit | 0b2b263060907e8bf732c1d27c66b7358af01e9f (patch) | |
tree | 321e459503ed2694126b2556e3064f95006c0148 /src/kernel/mem/virt.h | |
parent | 838b142b7374150df63ec02b02377c114a14b314 (diff) |
make virt_iter support iterating over physical memory too
Diffstat (limited to 'src/kernel/mem/virt.h')
-rw-r--r-- | src/kernel/mem/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/mem/virt.h b/src/kernel/mem/virt.h index 98a7a16..e87a9fe 100644 --- a/src/kernel/mem/virt.h +++ b/src/kernel/mem/virt.h @@ -17,6 +17,7 @@ struct virt_iter { bool _writeable; }; +/* if pages == NULL, create an iterator over physical memory. */ void virt_iter_new( struct virt_iter *iter, user_ptr virt, size_t length, struct pagedir *pages, bool user, bool writeable); |