Commit Graph

63 Commits

Author SHA1 Message Date
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
Anghelo Carvajal
db9ce0da18 Fix typo on setfpccsr.s (#60) 2024-01-17 12:37:25 -05:00
Derek Hensley
6c1f3067a1 Add ability to build without needing the original archive (#58)
* Add ability to build without comparing to original

* Remove CFLAGS += -DNON_MATCHING

* Order matters

* Comment

* PR

* PR comments
2024-01-07 18:25:26 -08:00
Mr-Wiseguy
261bdb81c1 Fix monutil not getting built (#59) 2024-01-07 01:15:08 -05:00
Derek Hensley
eddcfcd44e Small Cleanup (#55)
* Improve initialize_isv

* Small flash improvement

* error

* OS_USEC_TO_CYCLES is osSetTimer

* parens in flash

* typo
2023-09-24 16:58:55 -07:00
Derek Hensley
d7dc7177d6 Prepare for recomp update (#54)
* Prepare for recomp update

* Forgor recomp
2023-09-12 17:09:54 -07:00
Mr-Wiseguy
2ab125a5f3 Matched 2.0I and 2.0J, fixed matched object count calculation (#53)
* Matched 2.0I and 2.0J, fixed matched object count calculation

* Update version checkbox matrix

* Mark irix 2.0H as N/A in the checkbox matrix since it's not available

* Address PR comments

* Changed tab to spaces on new files

* Converted tabs to spaces in other changes, fixed os_motor.h definitions
2023-09-02 23:17:04 -04:00
Derek Hensley
454e949ff1 voice cleanup (#49) 2023-09-01 15:18:49 -07:00
Anghelo Carvajal
8cf510c955 Add sgidefs.h header to gcc subfolder (#50) 2023-09-01 15:13:47 -07:00
Mr-Wiseguy
7b04a39156 Add support for multiple versions, match current archives under 2.0K (#52)
* Initial pass at multi-version support, matched 2.0K

* Fixed CI and made it build K, changed default version back to L

* Fixed VERSION_DEFINE not being used after rebase

* Update checkbox matrix for 2.0K

* Update readme instructions, fix ido CI

* Fix NON_MATCHING and document it in the readme

* Change default version to L, fix clean removing all builds, made distclean remove all builds, allow running clean and distclean without setup

* Made build and extracted paths match the base path format, remove unnecessary file compilation flag setting
2023-08-31 10:38:15 -04:00
Anghelo Carvajal
d163fa4632 Fix two warnings (#51)
* fix one warning

* fix another warning
2023-08-10 12:21:14 -04:00
Derek Hensley
b376559296 Irix support (libultra_rom/libultra OK) (#44)
* WIP

* Add ar

* POC

* WIP libultra_rom

* Simplify Makefile and match initalize

* 1 c 1 s left

* exceptasm OK

* Different weak impl

* COMPARE_AR comment for irix

* Get ar working and clean up makefile

* Some more small cleanup

* Split makefile

* dereference instead of [0]

* Small cleanups

* initialize msp and kmc libultra

* libultra_rom OK

* Warnings

* Add to readme

* Fix ido ci?

* Make libultra_rom default again

* PR review

* libultra OK

* Update Readme

* whitespace removal

* Small exceptasm clean up

* Asm symbols

* Bring over improved asm.h

* build improvements

* asm PR suggestions

* Make comment

* Fix readme table

* strip debug on setup

* GBIDEFINEs
2023-06-27 17:58:03 -07:00
Anghelo Carvajal
e48fba4c34 Adjust viint.h macros to accept negative values (#47)
* Adjust viint.h macros to accept negative values

* review

* update macro
2023-06-26 10:18:36 +09:00
Mr-Wiseguy
0417857a2c Match libgultra_d.a and libgultra.a (#36)
* Begin stages of _d

* Match audio

* Match ldiv

* match llbit

* Match string.c (memcpy matched by wiseguy)

* match syncprintf

* Match flash code and skip libc X files (will do later)

* fix flash formatting and match some voice files

* More voice files

* More voice progress

* voice finish

* Match ai and sched

* Match aisetfreq (done by Tharo) and a few more

* match eep read/write

* more io files

* match epi

* Match gbpak and motor

* PFS mostly matched

* Match PI

* Match SI

* Match SP code

* Match VI code

* Fix alignment

* Match RG

* Fix exceptasm

* parse_gbi fix

* OS part 1

* Fix conflict

* Fix some bugs

* More files

* more matching

* Almost there

* begin some libultra_d code

* add delay

* Match timerintr

* fix for merge

* match logfloat

* printregion match

* log OK

* profile OK

* commonerror OK, plus small cleanups in profile and log

* small cleanup of commonerror

* Start

* Small cleanup

* Defines for constants and other cleanup (#1)

* Integrated fakechroot to match file paths for monutil

* Added generation of symlink to /bin for the chroot

* Matched monutil (#2)

* Added support for libgultra.a building

* Matched profile for libgultra.a

* Fixed host_ptn64 symtab diff, better support for building different versions

* finish libgultra_d (#33)

* finish libgultra_d

* clean up some old comments

* IDO recomp redirect (#35)

* Updates for patched ido

* Some clean up

* new line

* Update table to reflect that libgultra.a and libgultra_d.a are matched

* Change default target to libgultra_rom

* Replaced some magic numbers with defines, removed binlink

* Added explicit alignment to any implicitly aligned variables (#37)

* newlines

* profile cleanup

* va_end

* formating

* WAIT_ON_IOBUSY

* OS_VI_SPECIAL_MAX

* Ido download latest

* yeet useless __assertBreak

* Enable ci for all L libgultra

* Fix NULL syntax

* osViGetCurrentFramebuffer

* Format (#40)

* format

* file modes

* logfloat

* Fix wrong permisions

* left*

* Cleanups

* Missed an rdb.h

* newlines

---------

Co-authored-by: CrashOveride95 <crashoveride953@gmail.com>
Co-authored-by: CrashOveride95 <40003130+CrashOveride95@users.noreply.github.com>
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: pixel-stuck <mathmcclintic@gmail.com>
2023-04-02 19:12:00 -07:00
Derek Hensley
d5b1bfd843 Format (#41)
* Format

* Permissions

* Appease IDO -O1

* vimodes
2023-04-02 13:59:12 -07:00
Anghelo Carvajal
c3d2972079 Remove CR from every file (#39) 2023-04-02 13:30:18 -07:00
Anghelo Carvajal
d03b2a3afb Github Actions CI builds (#38)
* GHA CI for GCC libgultra

* CI templates for non GCC builds
2023-03-19 09:32:03 +09:00