Four 32-bit storage registers are available for general use. Their values are not preserved after software reboots. The following table lists the global general storage registers.
Device Node | Valid Value Range |
---|---|
/sys/firmware/zynqmp/ggs0 | 0x00000000 - 0xFFFFFFFF |
/sys/firmware/zynqmp/ggs1 | 0x00000000 - 0xFFFFFFFF |
/sys/firmware/zynqmp/ggs2 | 0x00000000 - 0xFFFFFFFF |
/sys/firmware/zynqmp/ggs3 | 0x00000000 - 0xFFFFFFFF |
To read the value of a global storage register:
cat /sys/firmware/zynqmp/ggs0
To write the mask and value of a global storage register:
echo 0xFFFFFFFF 0x1234ABCD > /sys/firmware/zynqmp/ggs0