From e90cac134d9ebd5e2dde3506eae40c06f448490e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Thu, 1 Oct 2026 18:44:52 -0500 Subject: [PATCH] cleanup(vi3in1): rename Vdac_Flag_Changed_816991E0 to Vdac_Flag_Changed Drop address suffix so source matches symbols.txt. Clear scope:local so NonMatching vi.c splits resolve the same global. --- config/43U/symbols.txt | 2 +- libs/RVL_SDK/src/vi/vi.c | 8 ++++---- libs/RVL_SDK/src/vi/vi3in1.c | 28 ++++++++++++++-------------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index d70e6b28..c4e84dc0 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -23750,7 +23750,7 @@ flushFlag3in1 = .sbss:0x816991CC; // type:object size:0x4 scope:local data:4byte flushFlag = .sbss:0x816991D0; // type:object size:0x4 scope:local data:4byte retraceCount = .sbss:0x816991D4; // type:object size:0x4 scope:local data:4byte __i2c_ident_first = .sbss:0x816991D8; // type:object size:0x4 scope:local data:4byte -Vdac_Flag_Changed = .sbss:0x816991E0; // type:object size:0x4 scope:local data:4byte +Vdac_Flag_Changed = .sbss:0x816991E0; // type:object size:0x4 data:4byte __level = .sbss:0x816991E4; // type:object size:0x4 scope:local data:4byte __gamma = .sbss:0x816991E8; // type:object size:0x4 scope:local data:4byte __type = .sbss:0x816991EC; // type:object size:0x4 scope:local data:4byte diff --git a/libs/RVL_SDK/src/vi/vi.c b/libs/RVL_SDK/src/vi/vi.c index 01334677..c4a26f8a 100644 --- a/libs/RVL_SDK/src/vi/vi.c +++ b/libs/RVL_SDK/src/vi/vi.c @@ -12,7 +12,7 @@ extern void SIRefreshSamplingRate(void); extern void VISetRGBModeImm(void); extern void __VISetRevolutionModeSimple(void); -extern volatile u32 Vdac_Flag_Changed_816991E0; +extern volatile u32 Vdac_Flag_Changed; extern void __VISetYUVSEL(u32 enable); extern void __VISetFilter4EURGB60(u32 enable); extern void __VISetCGMS(void); @@ -324,8 +324,8 @@ position_interrupt: } old_tvtype = currentTvType; if (flushFlag3in1 != 0) { - while (Vdac_Flag_Changed_816991E0 != 0) { - changeBit = 1U << (31 - __cntlzw(Vdac_Flag_Changed_816991E0)); + while (Vdac_Flag_Changed != 0) { + changeBit = 1U << (31 - __cntlzw(Vdac_Flag_Changed)); switch (changeBit) { case 1: __VISetCGMS(); @@ -352,7 +352,7 @@ position_interrupt: __VISetRGBModeImm(); break; } - Vdac_Flag_Changed_816991E0 &= ~changeBit; + Vdac_Flag_Changed &= ~changeBit; } flushFlag3in1 = 0; } diff --git a/libs/RVL_SDK/src/vi/vi3in1.c b/libs/RVL_SDK/src/vi/vi3in1.c index 5f89dbf0..c3f50243 100644 --- a/libs/RVL_SDK/src/vi/vi3in1.c +++ b/libs/RVL_SDK/src/vi/vi3in1.c @@ -138,7 +138,7 @@ static s32 Vdac_Flag_Region; static s32 __type; static s32 __gamma; static s32 __level; -volatile u32 Vdac_Flag_Changed_816991E0; +volatile u32 Vdac_Flag_Changed; static void __VISetCCSEL(u8 flag) { u8 data[2]; @@ -339,7 +339,7 @@ void VISetCGMS(u8 wd0, u8 wd1, u8 wd2) { __wd0 = wd0; __wd1 = wd1; __wd2 = wd2; - Vdac_Flag_Changed_816991E0 |= 1; + Vdac_Flag_Changed |= 1; } } @@ -382,7 +382,7 @@ void VISetMacrovision(s32 type) { if ((__type != type) || (__tvType != tvFormat)) { __type = type; __tvType = tvFormat; - Vdac_Flag_Changed_816991E0 |= 8; + Vdac_Flag_Changed |= 8; } } @@ -448,7 +448,7 @@ void VISetTrapFilter(BOOL filter) { return; } __filter = filter; - Vdac_Flag_Changed_816991E0 |= 0x20; + Vdac_Flag_Changed |= 0x20; } void __VISetRGBOverDrive(void) { @@ -468,7 +468,7 @@ void __VISetRGBOverDrive(void) { } void VISetRGBModeImm(void) { - Vdac_Flag_Changed_816991E0 |= 0x80; + Vdac_Flag_Changed |= 0x80; } void __VISetRGBModeImm(void) { @@ -520,34 +520,34 @@ void __VISetRevolutionMode(void) { __wd0 = 0; __wd1 = 0; __wd2 = 0; - Vdac_Flag_Changed_816991E0 |= 1; + Vdac_Flag_Changed |= 1; } if ((__gp1 != 0) || (__gp2 != 0) || (__gp3 != 0) || (__gp4 != 0)) { __gp1 = 0; __gp2 = 0; __gp3 = 0; __gp4 = 0; - Vdac_Flag_Changed_816991E0 |= 2; + Vdac_Flag_Changed |= 2; } if ((__cc1 != 0) || (__cc2 != 0) || (__cc3 != 0) || (__cc4 != 0)) { __cc1 = 0; __cc2 = 0; __cc3 = 0; __cc4 = 0; - Vdac_Flag_Changed_816991E0 |= 4; + Vdac_Flag_Changed |= 4; } VISetMacrovision(1); if (__filter != 0) { __filter = 0; - Vdac_Flag_Changed_816991E0 |= 0x20; + Vdac_Flag_Changed |= 0x20; } if (__level != 0) { __level = 0; - Vdac_Flag_Changed_816991E0 |= 0x40; + Vdac_Flag_Changed |= 0x40; } if (__gamma != 10) { __gamma = 10; - Vdac_Flag_Changed_816991E0 |= 0x10; + Vdac_Flag_Changed |= 0x10; } VIFlush(); VIWaitForRetrace(); @@ -588,7 +588,7 @@ void VISetWSS(u8 gp1, u8 gp2, u8 gp3, u8 gp4) { __gp2 = gp2; __gp3 = gp3; __gp4 = gp4; - Vdac_Flag_Changed_816991E0 |= 2; + Vdac_Flag_Changed |= 2; } } @@ -598,14 +598,14 @@ void VISetClosedCaption(u8 cc1, u8 cc2, u8 cc3, u8 cc4) { __cc2 = cc2; __cc3 = cc3; __cc4 = cc4; - Vdac_Flag_Changed_816991E0 |= 4; + Vdac_Flag_Changed |= 4; } } void VISetRGBOverDrive(s32 level) { if (__level != level) { __level = level; - Vdac_Flag_Changed_816991E0 |= 0x40; + Vdac_Flag_Changed |= 0x40; } } -- 2.49.1