summaryrefslogtreecommitdiff
path: root/src/mailbox.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-05-24 17:04:18 -0700
committer3gg <3gg@shellblade.net>2025-05-24 17:04:18 -0700
commit079cd940e727c1705e9f1b30706b9531d5aedda6 (patch)
tree25cb0748e1365679f5898f3437039af506cdb08e /src/mailbox.c
parenta8a39ba24e36119dce48a01c2139e0e5a25674e1 (diff)
Framebuffer WIPHEADmain
Diffstat (limited to 'src/mailbox.c')
-rw-r--r--src/mailbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailbox.c b/src/mailbox.c
index eaf0955..aacb747 100644
--- a/src/mailbox.c
+++ b/src/mailbox.c
@@ -21,7 +21,7 @@ static inline const void* msg_data(Message msg) {
21 return (const void*)((uintptr_t)(msg >> 4)); 21 return (const void*)((uintptr_t)(msg >> 4));
22} 22}
23 23
24static inline Message msg_make(uint8_t channel, const void* data) { 24static inline Message msg_make(uint8_t channel, volatile const void* data) {
25 return ((uintptr_t)(data) << 4) | (channel & 0xf); 25 return ((uintptr_t)(data) << 4) | (channel & 0xf);
26} 26}
27 27
@@ -64,7 +64,7 @@ const Mail* mbox_read(uint8_t channel) {
64 return (const Mail*)(msg_data(msg)); 64 return (const Mail*)(msg_data(msg));
65} 65}
66 66
67void mbox_write(uint8_t channel, const void* mail) { 67void mbox_write(uint8_t channel, volatile const void* mail) {
68 // Wait until the outbox is clear. 68 // Wait until the outbox is clear.
69 while (outbox_full(pMailbox)); 69 while (outbox_full(pMailbox));
70 // Send the mail. 70 // Send the mail.