diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-22 18:48:51 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-22 18:48:51 +0100 |
| commit | caba4178bbfd7b3b1ff2e156e24b08015137d16a (patch) | |
| tree | 46205b3e9d2a881c3c17297068528e7ee858f989 /kernel/src/misc | |
| parent | 53069ae43ea997d51d2b985a26fffdb86a59b023 (diff) | |
ANSI C: volatile -> __volatile__
Diffstat (limited to 'kernel/src/misc')
| -rw-r--r-- | kernel/src/misc/graphics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/src/misc/graphics.c b/kernel/src/misc/graphics.c index 33dd441..7ab67f3 100644 --- a/kernel/src/misc/graphics.c +++ b/kernel/src/misc/graphics.c @@ -14,7 +14,7 @@ void fb_draw_pixel(fb_t fb, int32_t x, int32_t y, uint32_t col) if (x >= (int32_t)fb.width || y >= (int32_t)fb.height) return; uint32_t fb_offset = (uint32_t)y * fb.pitch + (uint32_t)x * fb.bpp / 8; - volatile uint32_t* fb_buff = (uint32_t*)fb.addr; + __volatile__ uint32_t* fb_buff = (uint32_t*)fb.addr; fb_buff[fb_offset / 4] = col; } |
