Hi,
If I comment out lines about deep sleep, the assembler code returns well. But when DM368 fall deep sleep and back, system will halt. I add some lines to light a LED after recover from deep sleep and it works. I think system stopped when it go back to C code.
The original PM patch comes here: http://linux.omap.com/pipermail/davinci-linux-open-source/2008-January/004918.html