Skip to content

Commit

Permalink
Disable a lot of MMU debug spam
Browse files Browse the repository at this point in the history
  • Loading branch information
doug65536 committed Jan 28, 2017
1 parent 516d7ce commit 330afaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/arch/x86_64/cpu/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include "rbtree.h"
#include "idt.h"

#define DEBUG_ADDR_ALLOC 1
#define DEBUG_PHYS_ALLOC 1
#define DEBUG_PAGE_TABLES 1
#define DEBUG_ADDR_ALLOC 0
#define DEBUG_PHYS_ALLOC 0
#define DEBUG_PAGE_TABLES 0
#define DEBUG_PAGE_FAULT 0

// Intel manual, page 2786
Expand Down Expand Up @@ -860,6 +860,7 @@ static int addr_present(uintptr_t addr, unsigned *path, pte_t **ptes)
static void *mmu_tlb_shootdown(int intr, void *ctx)
{
assert(intr == INTR_TLB_SHOOTDOWN);
//printdbg("Received TLB shootdown\n");
thread_set_cpu_mmu_seq(mmu_seq);
cpu_flush_tlb();
apic_eoi(intr);
Expand Down

0 comments on commit 330afaa

Please sign in to comment.