[xtensa-cvscommit] linux/arch/xtensa/mm mmu.c,1.1.1.1,1.2
Brought to you by:
zankel
|
From: <joe...@us...> - 2002-10-18 21:57:30
|
Update of /cvsroot/xtensa/linux/arch/xtensa/mm
In directory usw-pr-cvs1:/tmp/cvs-serv1903/arch/xtensa/mm
Modified Files:
mmu.c
Log Message:
Fix three reset functions: machine_restart(), machine_halt(), and machine_power_off(). They no longer call xt_panic() to hang the system, but try to do something meaningful in the context of Xtensa and the XT2000 or ISS platforms, as appropriate.
Index: mmu.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/mm/mmu.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** mmu.c 28 Aug 2002 16:10:14 -0000 1.1.1.1
--- mmu.c 18 Oct 2002 21:57:27 -0000 1.2
***************
*** 21,26 ****
#include <asm/pgalloc.h>
- extern void xt_panic (void);
-
/* Called from arch-indep. files: */
--- 21,24 ----
***************
*** 107,114 ****
}
!
! void init_mmu (void)
{
-
/* Writing zeros to the <t>TLBCFG special registers ensure
* that valid values exist in the register. For existing
--- 105,110 ----
}
! void reset_mmu (void)
{
/* Writing zeros to the <t>TLBCFG special registers ensure
* that valid values exist in the register. For existing
***************
*** 125,137 ****
set_rasid_register (ASID_ALL_RESERVED);
! /*
! * Set PTEVADDR special register to the start of the page table,
! * which is in kernel mappable space (ie. not statically mapped).
! * This register's value is undefined on reset.
! */
! set_ptevaddr_register (PGTABLE_START);
}
--- 121,139 ----
set_rasid_register (ASID_ALL_RESERVED);
+ }
! void init_mmu (void)
! {
! /* Flush the mmu and reset associated register to default
! * values. */
! reset_mmu();
+ /* Set PTEVADDR special register to the start of the page
+ * table, which is in kernel mappable space (ie. not
+ * statically mapped). This register's value is undefined on
+ * reset. */
+
+ set_ptevaddr_register (PGTABLE_START);
}
|