]> xenbits.xensource.com Git - xen.git/commitdiff
[IA64] Remove unused variables. init_mm and swapper_pg_dir.
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 17 Apr 2006 14:46:52 +0000 (08:46 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 17 Apr 2006 14:46:52 +0000 (08:46 -0600)
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/arch/ia64/linux-xen/head.S
xen/arch/ia64/linux-xen/setup.c
xen/arch/ia64/xen/idle0_task.c
xen/arch/ia64/xen/ivt.S

index 93bb4f87d1c0d1910f7b12165d43d57daed233f0..9ba502e83177521378fe056057831647f98c9341 100644 (file)
@@ -178,9 +178,11 @@ RestRR:                                                                                    \
 empty_zero_page:
        .skip PAGE_SIZE
 
+#ifndef XEN
        .global swapper_pg_dir
 swapper_pg_dir:
        .skip PAGE_SIZE
+#endif
 
 #if defined(XEN) && defined(CONFIG_VIRTUAL_FRAME_TABLE)
        .global frametable_pg_dir
index da3e9137939b32edb8221dcafb3fe1b4e277cbda..55d49778792f93361eb0389c94c0565228ec1b8e 100644 (file)
@@ -859,8 +859,8 @@ cpu_init (void)
        ia64_setreg(_IA64_REG_CR_DCR,  (  IA64_DCR_DP | IA64_DCR_DK | IA64_DCR_DX | IA64_DCR_DR
                                        | IA64_DCR_DA | IA64_DCR_DD | IA64_DCR_LC));
 #endif
-       atomic_inc(&init_mm.mm_count);
 #ifndef XEN
+       atomic_inc(&init_mm.mm_count);
        current->active_mm = &init_mm;
 #endif
 #ifdef XEN
index bc7aeed28aa3164eaa4b66c0b1cd9b4e2508c5a8..da6e1c629d18c8d66b2e98e46e7cf736b1fc94d7 100644 (file)
@@ -2,24 +2,12 @@
 #include <xen/sched.h>
 #include <asm/desc.h>
 
-#define INIT_MM(name) \
-{                                                              \
-       .pgd            = swapper_pg_dir,                       \
-       .mm_users       = ATOMIC_INIT(2),                       \
-       .mm_count       = ATOMIC_INIT(1),                       \
-       .page_table_lock =  SPIN_LOCK_UNLOCKED,                 \
-       .mmlist         = LIST_HEAD_INIT(name.mmlist),          \
-}
-
 #define IDLE_VCPU(_v)               \
 {                                    \
     processor:   0,                  \
     domain:      0                   \
 }
 
-struct mm_struct init_mm = INIT_MM(init_mm);
-EXPORT_SYMBOL(init_mm);
-
 /*
  * Initial task structure.
  *
index abeeaabc3b8aa32db65a13c7937a10ba52f836de..14396813ded21443692cecba29742a1fafcfe7f3 100644 (file)
@@ -116,6 +116,9 @@ ia64_ivt:
 // 0x0000 Entry 0 (size 64 bundles) VHPT Translation (8,20,47)
 ENTRY(vhpt_miss)
        DBG_FAULT(0)
+#ifdef XEN
+       FAULT(0)
+#else
        /*
         * The VHPT vector is invoked when the TLB entry for the virtual page table
         * is missing.  This happens only as a result of a previous
@@ -141,11 +144,7 @@ ENTRY(vhpt_miss)
        ;;
        rsm psr.dt                              // use physical addressing for data
        mov r31=pr                              // save the predicate registers
-#ifdef XEN
-       movl r19=THIS_CPU(cpu_kr)+IA64_KR_PT_BASE_OFFSET;;
-#else
        mov r19=IA64_KR(PT_BASE)                // get page table base address
-#endif
        shl r21=r16,3                           // shift bit 60 into sign bit
        shr.u r17=r16,61                        // get the region number into r17
        ;;
@@ -241,6 +240,7 @@ ENTRY(vhpt_miss)
 
        mov pr=r31,-1                           // restore predicate registers
        rfi
+#endif
 END(vhpt_miss)
 
        .org ia64_ivt+0x400
@@ -625,7 +625,7 @@ ENTRY(nested_dtlb_miss)
        mov b0=r30
        br.sptk.many b0                         // return to continuation point
        ;;
-#endif
+#else
        /*
         * In the absence of kernel bugs, we get here when the virtually mapped linear
         * page table is accessed non-speculatively (e.g., in the Dirty-bit, Instruction
@@ -649,11 +649,7 @@ ENTRY(nested_dtlb_miss)
         * Clobbered:   b0, r18, r19, r21, psr.dt (cleared)
         */
        rsm psr.dt                              // switch to using physical data addressing
-#ifdef XEN
-       movl r19=THIS_CPU(cpu_kr)+IA64_KR_PT_BASE_OFFSET;;
-#else
        mov r19=IA64_KR(PT_BASE)                // get the page table base address
-#endif
        shl r21=r16,3                           // shift bit 60 into sign bit
        ;;
        shr.u r17=r16,61                        // get the region number into r17
@@ -688,6 +684,7 @@ ENTRY(nested_dtlb_miss)
 (p6)   br.cond.spnt page_fault
        mov b0=r30
        br.sptk.many b0                         // return to continuation point
+#endif
 END(nested_dtlb_miss)
 
        .org ia64_ivt+0x1800