This adds PAT support for write-combining memory mappings.  For kernel memory
mappings, we can use vmap_pmem_writecomb().  For custom memory mappings, we can
use PTE_WRITECOMB.

I rebased and touched up Kanoj's commit.  If you'd prefer to do that and work
directly off my last commit (660165), then let me know.

------------
You can also find this patch set at:

[email protected]:brho/akaros.git
From: 7793cb72c3a0 master
To: 84e2c6919d8c pat

And view them at: 

https://github.com/brho/akaros/compare/7793cb72c3a0...84e2c6919d8c

------------


Barret Rhoden (3):
  Stop using PTE_PCD and PTE_PWT directly (XCC)
  x86: initialize the PAT MSR
  Add write-combining memory mapping mode (XCC)

Kanoj Sarcar (1):
  Implement write combining on x86

 kern/arch/riscv/ros/mmu.h       |  2 ++
 kern/arch/x86/cpuinfo.c         |  6 ++++--
 kern/arch/x86/pmap.c            | 44 +++++++++++++++++++++++++++++++++++++++++
 kern/arch/x86/pmap64.c          |  2 +-
 kern/arch/x86/ros/mmu64.h       | 11 ++++++-----
 kern/drivers/net/udrvr/compat.c | 19 ++++++++++++++++++
 kern/drivers/net/udrvr/compat.h | 19 ++----------------
 kern/include/mm.h               |  1 +
 kern/src/mm.c                   |  5 +++++
 9 files changed, 84 insertions(+), 25 deletions(-)

-- 
2.7.0.rc3.207.g0ac5344

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to