aboutsummaryrefslogtreecommitdiffstats
path: root/old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c
diff options
context:
space:
mode:
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2003-02-24 16:55:07 +0000
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2003-02-24 16:55:07 +0000
commita48212cb65e09669ed243581556529681cebba0a (patch)
treea58f47e4764f343db87eba48d17ce9b2ddbf8047 /old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c
parent96ce9e11d148a721557d48ed5a8ca7857a7bc937 (diff)
downloadxen-a48212cb65e09669ed243581556529681cebba0a.tar.gz
xen-a48212cb65e09669ed243581556529681cebba0a.tar.bz2
xen-a48212cb65e09669ed243581556529681cebba0a.zip
bitkeeper revision 1.93 (3e5a4e6bkPheUp3x1uufN2MS3LAB7A)
Latest and Greatest version of XenoLinux based on the Linux-2.4.21-pre4 kernel.
Diffstat (limited to 'old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c')
-rw-r--r--old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c b/old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c
new file mode 100644
index 0000000000..b8f41fb269
--- /dev/null
+++ b/old/xenolinux-2.4.16-sparse/arch/xeno/mm/mmu_context.c
@@ -0,0 +1,26 @@
+
+#include <linux/slab.h>
+#include <linux/list.h>
+
+int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
+{
+ INIT_LIST_HEAD(&mm->context.direct_list);
+ return 0;
+}
+
+/* just free all elements of list identifying directly mapped areas */
+void destroy_context(struct mm_struct *mm)
+{
+ direct_mmap_node_t * node;
+ struct list_head * curr;
+ struct list_head * direct_list = &mm->context.direct_list;
+
+ curr = direct_list->next;
+ while(curr != direct_list){
+ node = list_entry(curr, direct_mmap_node_t, list);
+ curr = curr->next;
+ list_del(&node->list);
+ kfree(node);
+ }
+
+}