#if 0
/* Print data in ASCII characters */
printk (" ");
for (i = 0; i < linelen * width; i++)
fputc (isprint (ucp[i]) && (ucp[i] < 0x80) ? ucp[i] : '.', stdout);
fputc ('\n', stdout);
#endif
printk("\n");
/* update references */
addr += linelen * width;
count -= linelen;
}
return 0;
}
asmlinkage int sys_kmd(unsigned int v_addr)
{
ulong length = 64, p_addr = 0, size = 4;
if (0 == v_addr)
{
printk("v_addr = %x\n", (unsigned int)v_addr);
return -1;
}
p_addr = virt_to_phys((void *)v_addr);
printk("v_addr <--> p_addr\n");
printk("%08x <--> %08x\n", (unsigned int)v_addr,
(unsigned int)p_addr);
print_buffer (v_addr, (void *) v_addr, size, length,
DISP_LINE_LEN / size);
return 0;
}
#endif