Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13 /include/asm-arm/cpu-single.h

Filename:/include/asm-arm/cpu-single.h
Lines Added:10
Lines Deleted:0
Also changed in: (Previous) 2.4.13-pre6  2.4.13-pre5  2.4.13-pre4  2.4.13-pre3  2.4.13-pre2  2.4.13-pre1 
(Following) 2.4.21-bk1  2.4.21-bk2  2.4.21-bk3  2.4.21-bk4  2.4.21-bk5  2.4.21-bk6 

Location
[  2.4.13
  [  include
    [  asm-arm
       o  cpu-single.h

Patch

diff -u --recursive --new-file v2.4.12/linux/include/asm-arm/cpu-single.h linux/include/asm-arm/cpu-single.h
--- v2.4.12/linux/include/asm-arm/cpu-single.h   Mon Sep 18 15:15:23 2000
+++ linux/include/asm-arm/cpu-single.h   Thu Oct 11 09:04:57 2001
@@ -51,6 +51,7 @@
 
 #ifndef __ASSEMBLY__
 
+#include <asm/memory.h>
 #include <asm/page.h>
 
 /* forward declare task_struct */
@@ -85,5 +86,14 @@
 extern volatile void cpu_reset(unsigned long addr);
 
 #define cpu_switch_mm(pgd,tsk) cpu_set_pgd(__virt_to_phys((unsigned long)(pgd)))
+
+#define cpu_get_pgd()   \
+   ({                  \
+      unsigned long pg;         \
+      __asm__("mrc p15, 0, %0, c2, c0, 0"   \
+          : "=r" (pg));         \
+      pg &= ~0x3fff;            \
+      (pgd_t *)phys_to_virt(pg);      \
+   })
 
 #endif


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.