At 5:00 PM +0200 2000/08/05, Daniel Seifert wrote:
>...
>PrefSetPreference(prefDeviceLocked, true)
>
>is all I want to do. And it does work - if the Palm is reset by
>pressing a "reset" button like HackMaster supplies, or after the
>Palm crashes. But if the reset is a 'paper clip' reset, then it does
>not work - leading me to the conclusion, that in this case
>SysReset() is not called, although the documentation says otherwise:
>"This routine is called when the user presses the hidden reset
>switch on the device." So is this a bug in the manual or am I
>misunderstanding sth?

A pin reset is a hardware level reset, forcing the CPU to begin execution at a 
hard-wired address in ROM. This location then calls the SysReset function, with flags 
to indicate the type of reset that is occurring. In this case, however, the function 
is not called via the trap table, because there may not be a trap table at that point 
in time during a normal boot sequence of the device. This is why you cannot patch the 
SysReset function and expect it to call your patch when you pin reset the unit.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to