This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how do I save an address into a memory location

I have the following memory location:

.section .data

digits:   .dword 0

I obtain a shared memory location using shget and shmat.  I want to store the address returned by shmat into digits but I can't seem to do it.

I've tried putting the shared address into x0 and the doing the following:

adr x1, digits

str x0, [x1]

but that doesn't save the address. What am I doing wrong?

Thanks,