Commit Graph

79 Commits

Author SHA1 Message Date
Gregory Heskett
08e84e89ac Add new CODEOWNERS file (#5) 2025-02-17 23:00:42 -05:00
someone2639
c366e0122a Format the Repo (#3)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

* formatting changes

* add clang format files

* formatting changes

* make libgultra CI work

* install mips gcc too

* add format check tools

* Add formatting to CI

* Add CI (#4)

* make libgultra CI work

* install mips gcc too

* remove make setup

---------

Co-authored-by: someone2639 <someone2639@gmail.com>

* we don't use clang-tidy

* use 120 width for formatting

* a

* address clang-tidy messing up

* test

* align consecutive macros and declarations

* only align macros for now

* SpaceAfterCStyleCast: false

* format headers too

* remove cast space switch because its false by default

* pointers on left

* AlignConsecutiveBitFields: true

* install clang-format and clang-tidy on gh actions

* and clang-tools

* show diff in format check tool

* make CI work

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
🙏
2025-02-17 22:56:09 -05:00
someone2639
408c92afed Add CI (#4)
* make libgultra CI work

* install mips gcc too

* remove make setup

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-17 16:00:38 -05:00
someone2639
efbd931cbc Set up Makefile for modern building (#1)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-17 11:28:31 -05:00
Derek Hensley
2717d451b9 Print function mdebug (#90)
* xprintf mdebug

* xlitob mdebug

* xldtob mdebug

* sprintf mdebug

* syncprintf mdebug

* ldouble + remove ultratypes.h from xstdio.h

* double only for IDO
2024-11-29 02:36:18 +09:00
Derek Hensley
6e861af404 Move compiler includes to include/compiler (#91) 2024-11-29 01:40:49 +09:00
Derek Hensley
80056b4961 FIXUPS -> MODERN_LD (#92) 2024-11-29 01:40:28 +09:00
cadmic
1616482098 Add VI_CTRL_ANTIALIAS_MODE_0 + oot comments (#89)
* Add VI_CTRL_ANTIALIAS_MODE_0 + oot comments

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Add VI_CTRL_ANTIALIAS_MODE_0 to vimodes

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-22 10:30:10 -06:00
Derek Hensley
6e9175b807 Modern GCC (#88)
* Add modern gcc makefile

* Add MODERN define to actually be able to build

* Better modern gcc builds

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: cadmic <cadmic24@gmail.com>

* Warnings

* MODERN_CC

* OPTFLAGS

* no-strict-aliasing

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: cadmic <cadmic24@gmail.com>
2024-08-22 10:29:10 -06:00
Derek Hensley
bcca1c8292 General docs + cleanup (#84)
* osCreateThread small cleanup

* osViSetSpecialFeatures

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osAiSetNextBuffer

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* macros.h move to PRinternal.h

* dbgproto.h and dbgdefs.h moved to PRinternal

* Align OSPifRAM struct

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* LAN1 vimode comments

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Stack macros

* Hex for all ALIGNED macros

* leoDiskSTack ALIGNED(0x10)

* interrupt bug

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* ASM comment

* Revert "LAN1 vimode comments"

This reverts commit bed467a67172de611cde15744eb659f996f3d157.

* STACK_START

* FPCSR_RM_RN

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-20 00:19:01 -04:00
cadmic
bf1f007dc7 Don't hardcode version IDs in Makefile (#86) 2024-08-19 23:54:22 -04:00
Derek Hensley
8f96e1e71b vimode file comments (#85)
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
2024-08-19 23:52:27 -04:00
cadmic
5ed26e7c0a Remove carriage returns from files (#87) 2024-08-19 23:49:17 -04:00
Derek Hensley
a68329aec1 Asm Formatting (#82)
* Replace STAY2 with per instruction macros

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* asm Formatting

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Remove unused STAY macros

* space after comma for some asm args

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-19 23:48:28 -04:00
cadmic
b755039f49 Use $(CROSS)ar instead of host ar (#83) 2024-08-18 22:28:41 -04:00
Wiseguy
56d146a86a Add mips binutils to the package install list for the gcc workflow 2024-08-18 22:25:58 -04:00
Derek Hensley
52d323da2e Some Docs (#79)
* osAiGetLength

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osAiSetFrequency

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* contquery.c

* osContSetCh

* bzero

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osInvalDCache

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osInvalICache

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* __osProbeTLB

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osSetIntMask

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osWritebackDCache

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* crc

Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* __osVoiceContDataCrc

Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* voice file headers

Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* exceptasm

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* CHECK_IPAGE in pfsreadwritefile

* prs read write macros in __osPfsRWInode

* PIF_RAM_SIZE in sirawdma

* Additional use of VI_SUBPIXEL_SH in __osViSwapContext

* Remove PR/os.h includes from some libc files

* Add void as arg to empty arg functions

* interrupt threadasm macros

* Use NTLBENTRIES in osMapTLBRdb

* Some usage of NULL in thread.c

* Use K0BASE/RDB_BASE_VIRTUAL_ADDR instead of KUSIZE in some places

* Force semicolon usage on _osVirtualToPhysical

* replace tabs with spaces

* __osContinitialized boolean

* PR review cleanup

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Update src/os/invaldcache.s

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-07-08 17:10:43 -07:00
Derek Hensley
0c679b24b0 Makefile Improvements (#81)
* Include WORKING_DIR in CC so can call compiler with just CC not WORKING_DIR/CC

* Move makefiles (except the main one) to a makefiles folder to keep root cleaner

* Set compiler based on target, and use that to set proper makefile

* .mk file extension

* Use AS for assembly files instead of CC
2024-07-07 13:56:41 -07:00
Derek Hensley
c618e55320 kmcprintf OK (#80)
* kmcprintf OK

* Use empty string for NULSTR
2024-06-28 13:17:40 -04:00
Derek Hensley
a1542b6ae3 Move some headers from src to include/PRinternal (#77)
* controller.h

* siint.h

* osint and viint

* piint.h

* rmonint.h

* Remove ARRLEN from controller.h

* PRinternal

* controller_gbpak.h and controller_voice.h
2024-06-06 19:51:54 -07:00
Derek Hensley
5e8f8f0308 Specify COMPILER_DIR (#67)
* SJIS makefile recipe

* Use COMPILER_DIR instead of second recipe
2024-06-03 20:36:40 -07:00
Derek Hensley
299d7faf87 Makefile Cleanup (#64)
* Remove mdebug from COMPARE=0 archives

* Remove ASM_DIRS

* FIXUPS

* Remove asm directories

* move update marker file comment

* Add FIXUPS to README
2024-02-24 17:50:26 -08:00
Derek Hensley
caf88debe9 Fix leointerrupt warnings (#63) 2024-02-24 16:43:53 -08:00
Derek Hensley
d0bb8afe41 Small cleanup (#62) 2024-02-24 11:38:10 -08:00
Derek Hensley
34e07ce1c1 newline seperated ofiles (#61) 2024-02-23 21:20:09 -08:00