/* This PDC call reads count bytes from the supplied memaddr address, and copies count bytes to the Stable Storage address staddr. The call will fail if staddr+count > PDC_STABLE size.  */
int pdc_stable_write(unsigned long staddr, void *memaddr, unsigned long count)
/* This PDC call reads count bytes from the supplied memaddr address, and copies count bytes to the Stable Storage address staddr. The call will fail if staddr+count > PDC_STABLE size.  */
int pdc_stable_write(unsigned long staddr, void *memaddr, unsigned long count)
{
       int retval;
	unsigned long flags;
       spin_lock_irqsave(&pdc_lock, flags);
       memcpy(pdc_result, memaddr, count);
       convert_to_wide(pdc_result);
       retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_WRITE, staddr,
               __pa(pdc_result), count);
       spin_unlock_irqrestore(&pdc_lock, flags);
       return retval;
}