diff options
Diffstat (limited to 'kernel/arch')
-rw-r--r-- | kernel/arch/i386/mmu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/arch/i386/mmu.c b/kernel/arch/i386/mmu.c index 8761dd8..9b63a9a 100644 --- a/kernel/arch/i386/mmu.c +++ b/kernel/arch/i386/mmu.c @@ -156,11 +156,11 @@ void write_to_frame(u32 frame_address, u8 on) { num_allocated_frames++; tmp_small_frames[INDEX_FROM_BIT(frame)] |= ((u32)0x1 << OFFSET_FROM_BIT(frame)); - return; + } else { + num_allocated_frames--; + tmp_small_frames[INDEX_FROM_BIT(frame)] &= + ~((u32)0x1 << OFFSET_FROM_BIT(frame)); } - num_allocated_frames--; - tmp_small_frames[INDEX_FROM_BIT(frame)] &= - ~((u32)0x1 << OFFSET_FROM_BIT(frame)); } PageDirectory *get_active_pagedirectory(void) { |