Add arch/membar.h
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 11 Apr 2018 20:30:03 +0000 (16:30 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:38:29 +0000 (14:38 -0400)
I have a few things I want to add that will be kernel-only for now.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/riscv/arch.h
kern/arch/riscv/membar.h [new file with mode: 0644]
kern/arch/x86/atomic.h
kern/arch/x86/membar.h [new file with mode: 0644]
kern/arch/x86/perfmon.c
kern/include/atomic.h
kern/src/manager.c

index d1f603a..76e8c9a 100644 (file)
@@ -3,7 +3,7 @@
 #include <ros/arch/arch.h>
 #include <arch/mmu.h>
 #include <ros/common.h>
-#include <ros/arch/membar.h>
+#include <arch/membar.h>
 #include <arch/riscv.h>
 #include <arch/time.h>
 
diff --git a/kern/arch/riscv/membar.h b/kern/arch/riscv/membar.h
new file mode 100644 (file)
index 0000000..18f0926
--- /dev/null
@@ -0,0 +1 @@
+#include <ros/arch/membar.h>
index dd1a29c..a7766d8 100644 (file)
@@ -7,7 +7,7 @@
 #pragma once
 
 #include <ros/common.h>
-#include <ros/arch/membar.h>
+#include <arch/membar.h>
 #include <arch/x86.h>
 #include <arch/arch.h>
 
diff --git a/kern/arch/x86/membar.h b/kern/arch/x86/membar.h
new file mode 100644 (file)
index 0000000..18f0926
--- /dev/null
@@ -0,0 +1 @@
+#include <ros/arch/membar.h>
index 41173bc..0e7de49 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <sys/types.h>
 #include <arch/ros/msr-index.h>
-#include <arch/ros/membar.h>
 #include <arch/x86.h>
 #include <arch/msr.h>
 #include <arch/uaccess.h>
index e5d1d2d..d7682c7 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <ros/common.h>
 #include <ros/atomic.h>
+#include <arch/membar.h>
 #include <arch/mmu.h>
 #include <arch/arch.h>
 #include <assert.h>
index 96b3dcb..a5d5766 100644 (file)
@@ -25,7 +25,6 @@
 #include <pmap.h>
 #include <arch/console.h>
 #include <time.h>
-#include <ros/arch/membar.h>
 
 /*
  * Currently, if you leave this function by way of proc_run (process_workqueue