diff options
author | raj <raj@FreeBSD.org> | 2008-04-26 17:57:29 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2008-04-26 17:57:29 +0000 |
commit | c57f5d712ebd12c9cc806fb3fc4fdcf798d91781 (patch) | |
tree | b40144f2e602a651217c976aa6ef991b14858b64 /sys/powerpc/booke | |
parent | a681868ea5dbad90ea028a90173c94ddb1059477 (diff) | |
download | FreeBSD-src-c57f5d712ebd12c9cc806fb3fc4fdcf798d91781.zip FreeBSD-src-c57f5d712ebd12c9cc806fb3fc4fdcf798d91781.tar.gz |
Introduce a dedicated file for MPC85xx-specific routines. Move cpu_reset()
there, as it's not relevant to Book-E specification, but is an implementation
detail, directly dependent on the given SoC version.
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/vm_machdep.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/powerpc/booke/vm_machdep.c b/sys/powerpc/booke/vm_machdep.c index 8c3ad65..bcb2f4e 100644 --- a/sys/powerpc/booke/vm_machdep.c +++ b/sys/powerpc/booke/vm_machdep.c @@ -257,22 +257,6 @@ cpu_throw(struct thread *old, struct thread *new) panic("cpu_throw() didn't"); } -/* Reset back to firmware. */ -void -cpu_reset() -{ - - /* Clear DBCR0, disables debug interrupts and events. */ - mtspr(SPR_DBCR0, 0); - __asm volatile("isync"); - - /* Enable Debug Interrupts in MSR. */ - mtmsr(mfmsr() | PSL_DE); - - /* Enable debug interrupts and issue reset. */ - mtspr(SPR_DBCR0, mfspr(SPR_DBCR0) | DBCR0_IDM | DBCR0_RST_SYSTEM); -} - /* * Allocate a pool of sf_bufs (sendfile(2) or "super-fast" if you prefer. :-)) */ @@ -404,7 +388,7 @@ is_physical_memory(vm_offset_t addr) * stuff other tests for known memory-mapped devices (PCI?) * here */ - return 1; + return (1); } /* |