From 5bddafeaf61fa11f4902598e1aeb075968a29a6d Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Wed, 21 Jun 2023 16:46:59 +0200 Subject: stirom: Don't initialize graphics twice Signed-off-by: Helge Deller --- src/parisc/stirom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parisc/stirom.c b/src/parisc/stirom.c index b128551..4c41d7c 100644 --- a/src/parisc/stirom.c +++ b/src/parisc/stirom.c @@ -3582,6 +3582,10 @@ void sti_rom_init(void) struct font *font_ptr, *font_next, *font_start; int i; + /* STI ROM already initialized? */ + if (sti_proc_rom.font_start) + return; + sti_rom_size = (_sti_rom_end - _sti_rom_start) / 4096; if (sti_region_list[0].region_desc.length != sti_rom_size) { /* The STI ROM size is wrong. Try to fix it. -- cgit v1.1