1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

Kernel: Add Region::clear_to_zero

This helper method can be used to quickly and efficiently zero out a
region.
This commit is contained in:
Idan Horowitz 2021-11-29 21:18:59 +02:00
parent 5f95a1a7b7
commit ff6b43734c
2 changed files with 15 additions and 0 deletions

View file

@ -182,6 +182,8 @@ public:
void remap();
void clear_to_zero();
[[nodiscard]] bool is_syscall_region() const { return m_syscall_region; }
void set_syscall_region(bool b) { m_syscall_region = b; }