Read cortex m4 from Linux

hi, I wanted to know in beaglebone ai, how the exchange of variables processed by the cortex m4 takes place, how can I read them with Linux in the cortex a?

sorry the question is how do I read variables in the m4 from to a15 and vice versa? Thank you