arch: shutdown support for loongarch64 virt platforms
Picked from 1/2:
7bff584c2b1f357a2f1836fcf2c218b847858e04
Add shutdown feature by writing a byte to some specific position.
Original commit message:
Merge remote-tracking branch 'SMS-Derfflinger/fix-syscall' into dockerfile
Picked from 2/2:
9a405f86524226f0b775ba8fde778494d5e0631a
The shutdown will not work if the write is not 1 byte in width.
Fix this by casting the pointer to *mut u8.
Original commit message:
make loongarch64 poweroff work
(cherry picked from commit 7bff584c2b1f357a2f1836fcf2c218b847858e04)
Signed-off-by: greatbridf <greatbridf@icloud.com>