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,
forte said:I obtain a shared memory location using shget and shmat.
Not in the toolchain whose forum you're writing this question in, you don't.