rpi400: fbterm: only do that on arm
This commit is contained in:
parent
116ee0a803
commit
7fc07996d1
@ -54,7 +54,10 @@ extern uint32_t lfb_resolution_s;
|
||||
static inline void set_point(int x, int y, uint32_t value) {
|
||||
if (lfb_resolution_b == 32) {
|
||||
((uint32_t*)lfb_vid_memory)[y * (lfb_resolution_s/4) + x] = value;
|
||||
#ifdef __aarch64__
|
||||
/* TODO just map it uncached in the first place... */
|
||||
asm volatile ("dc cvac, %0\n" :: "r"((uintptr_t)&((uint32_t*)lfb_vid_memory)[y * (lfb_resolution_s/4) + x]) : "memory");
|
||||
#endif
|
||||
} else if (lfb_resolution_b == 24) {
|
||||
lfb_vid_memory[y * lfb_resolution_s + x * 3 + 0] = (value >> 0) & 0xFF;
|
||||
lfb_vid_memory[y * lfb_resolution_s + x * 3 + 1] = (value >> 8) & 0xFF;
|
||||
|
Loading…
Reference in New Issue
Block a user