Exemplo n.º 1
0
char *
test_mem_dev()
{
    struct super_block *sb;

    mem_dev_init(MEM_FS_SIZE);

    sb = (struct super_block *) mem_dev_read(0);

    mu_assert("super block size", sb->size == MEM_FS_SIZE);

    mem_dev_free((unsigned char *) sb);

    return 0;
}
Exemplo n.º 2
0
 // -----------------------------------------------------------------------
 // Debug read/write implementations
 //
 int
 IODeviceUart::mem_dev_read  (uint32 addr, unsigned char* dest, int size, int agent_id)
 {
   return mem_dev_read(addr, dest, size);
 }