Hi all,
I am trying to assign a pointee into an integer and subtract a constant from that. Is this possible?
I have the following code:
This gives 0xDF3F1E00 instead of the desirable 0x1F3F1E00.Code:#define OFFSET 0xC0000000 uint32_t *Pointer_A = (uint32_t*)0xDF3F1E00; uint32_t Variable_A = Pointer_A - OFFSET; printk("Variable_A is: 0x%X \n", Variable_A);
Any hints?