Hi all,
I am trying to take the address of a pointed structure's element.
I have a pointer to a table_a structure in address 0x0000FFFF:
struct table_a *rsdt = (*uint32_t) 0x0000FFFF;
I would like to create a pointer rsdt_search that will point to a (32-bit) address
and make it point to the address of the table_offset field of the table_a structure that is pointed by *rsdt.
I am trying to that like following but GCC complains that there are multiple markers at the line:
uint32_t rsdt_search* = (uint32_t)*) rsdt->table_offset;
In other words, I don't want to make rsdt_search* to point to the beginning of the structure that is pointed by *rsdt (i.e. 0x0000FFFF) but to the 5th element of structure (i.e. 0x0000FFF + 5 Bytes).
Any ideas?
Thanks in advance.