Skip to content
Browse files

Fix a software bug : mmu_read was sending wrong CSR_TLB_CTRL ids thus…

… not enabling the MMU
  • Loading branch information...
1 parent 16a0419 commit 2c801a45a69a5848d048c518d8ef43507c7de585 @fallen committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 software/libhal/mmu.c
4 software/libhal/mmu.c
@@ -19,8 +19,8 @@
#include <base/mmu.h>
#define DTLB_CTRL_FLUSH_CMD (0x3)
-#define DTLB_CTRL_DISABLE_CMD (0x5)
-#define DTLB_CTRL_ENABLE_CMD (0x9)
+#define DTLB_CTRL_DISABLE_CMD (0x9)
+#define DTLB_CTRL_ENABLE_CMD (0x11)
/* @vpfn : virtual page frame number
* @pfn : physical page frame number

0 comments on commit 2c801a4

Please sign in to comment.
Something went wrong with that request. Please try again.