Linuxppc-embedded Digest, Vol 24, Issue 42
The following code works on linux 2.6
__volatile__ unsigned char dummy;
u32 msr;
local_irq_disable();
((cpm2_map_t *)CPM_MAP_ADDR)->im_clkrst.car_rmr = 1;
/* Checkstop Reset enable */
/* Interrupts and MMU off */__asm__ __volatile__ ("mfmsr %0":"=r" (msr):);
msr &= ~(MSR_ME | MSR_EE | MSR_IR | MSR_DR);__asm__ __volatile__ ("mtmsr %0"::"r" (msr));
dummy = ((cpm2_map_t
*)CPM_MAP_ADDR)->im_clkrst.res[0];
printk("Restart failed.\n");
for (;;);
Quoted 7 lines · --- [email protected] wrote:
Send Linuxppc-embedded mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 7 lines
or, via email, send a message with subject or body 'help' to
[email protected]You can reach the person managing the list at
[email protected]
Quoted 11 lines
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linuxppc-embedded digest..."Today's Topics:
1. RE: reboot on PQ2FADS board. (Liu Dave-r63238)
----------------------------------------------------------------------
Quoted 10 lines
Message: 1
Date: Fri, 18 Aug 2006 09:45:21 +0800
From: "Liu Dave-r63238" <[email protected]>
Subject: RE: reboot on PQ2FADS board.
To: "Zhimin \(Jimmy\) Liu" <[email protected]>,
<[email protected]>
Message-ID:
<995B09A8299C2C44B59866F6391D26350CDA9C@zch01exm21.fsl.freescale.net>
Quoted 31 lines
Content-Type: text/plain; charset="us-ascii"
Hi Liu,
please try this..
u32 msr;
volatile
immap_t*immap = (immap_t*)IMAP_ADDR; /* Interrupts and MachineCheck off */ __asm__ __volatile__ ("mfmsr %0":"=r" (msr):); msr &= ~(MSR_ME | MSR_EE); __asm__ __volatile__ ("mtmsr %0"::"r" (msr)); immap->im_clkrst.car_rmr = 1; /* CheckstopReset enable */
immap->resxxx = 0; /* please find one immap illegal address access it, trig reset */ for (;;);
Quoted 4 lines
________________________________
From:
Quoted 1 line
[mailto:[email protected]]
Quoted 12 lines
On
Behalf Of Zhimin (Jimmy) Liu
Sent: Friday, August 18, 2006 1:00 AM
To: [email protected]
Subject: reboot on PQ2FADS board.Did you sovlve the problem? I have same issue for
the PQ2FADS
board.
Quoted 6 lines
jimmy
-------------- next part -------------- An HTML attachment was scrubbed...
URL:
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060818/968e753a/attachment.html
Quoted 8 lines
------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 4 lines
End of Linuxppc-embedded Digest, Vol 24, Issue 42
*************************************************
Jimmy Zhimin Liu
mailto:[email protected]
www.edgar-online.com
11200 Rockville Pike, Suite 301
Rockville, MD 20874
(301)287-0339(O)
(202)499-6822(H)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com