diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2021-12-01 00:08:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-30 19:08:57 -0500 |
| commit | f1d183d6feac23275306bfa2dee939d123702765 (patch) | |
| tree | c20585c17dea94561f7c4cfcff572e39bc033a3e /src/libultra_boot_O2/__osViInit.c | |
| parent | eabc91881761a82856cca3fab9a4749c60ea1fe7 (diff) | |
libultra files and directories restructure (#1038)
* Restructure files, begin header restructure
* Format
* us2dex
* Fix parallel spelling
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
* Use OS_K0_TO_PHYSICAL in place of VIRTUAL_TO_PHYSICAL in osAiSetNextBuffer
* Uppercase hex, exception vector address defines
* Interrupt flags 1
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
* Interrupt flags 2
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/libultra_boot_O2/__osViInit.c')
| -rw-r--r-- | src/libultra_boot_O2/__osViInit.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/libultra_boot_O2/__osViInit.c b/src/libultra_boot_O2/__osViInit.c deleted file mode 100644 index 12905742e..000000000 --- a/src/libultra_boot_O2/__osViInit.c +++ /dev/null @@ -1,34 +0,0 @@ -#include "global.h" - -OSViContext vi[2] = { 0 }; -OSViContext* __osViCurr = &vi[0]; -OSViContext* __osViNext = &vi[1]; - -void __osViInit(void) { - bzero(vi, sizeof(vi)); - __osViCurr = &vi[0]; - __osViNext = &vi[1]; - - __osViNext->retraceCount = 1; - __osViCurr->retraceCount = 1; - __osViNext->buffer = (void*)0x80000000; - __osViCurr->buffer = (void*)0x80000000; - - if (osTvType == OS_TV_PAL) { - __osViNext->modep = &osViModePalLan1; - } else if (osTvType == OS_TV_MPAL) { - __osViNext->modep = &osViModeMpalLan1; - } else { - __osViNext->modep = &osViModeNtscLan1; - } - - __osViNext->state = 0x20; - __osViNext->features = __osViNext->modep->comRegs.ctrl; - - while (HW_REG(VI_CURRENT_REG, u32) > 10) { - ; - } - - HW_REG(VI_CONTROL_REG, u32) = 0; - __osViSwapContext(); -} |
