URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 98 |
Rev 101 |
Line 165... |
Line 165... |
{
|
{
|
unsigned int size_mask = bit_mask (size);
|
unsigned int size_mask = bit_mask (size);
|
unsigned int addr_mask = ~size_mask;
|
unsigned int addr_mask = ~size_mask;
|
struct dev_memarea *mem;
|
struct dev_memarea *mem;
|
|
|
printf ("Reg mem area, addr = 0x%08lx, size_mask = 0x%08lx, "
|
|
"addr_mask = 0x%08lx\n", (unsigned long int) addr,
|
|
(unsigned long int) size_mask, (unsigned long int) addr_mask);
|
|
|
|
mem = register_memoryarea_mask (addr_mask, addr & addr_mask, size_mask + 1,
|
mem = register_memoryarea_mask (addr_mask, addr & addr_mask, size_mask + 1,
|
mc_dev);
|
mc_dev);
|
|
|
memcpy (&mem->ops, ops, sizeof (struct mem_ops));
|
memcpy (&mem->ops, ops, sizeof (struct mem_ops));
|
memcpy (&mem->direct_ops, ops, sizeof (struct mem_ops));
|
memcpy (&mem->direct_ops, ops, sizeof (struct mem_ops));
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.