Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous touch-ups #415

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/GL/primitive.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void gl_reset_vertex_cache()

bool gl_check_vertex_cache(uint32_t id, uint8_t *cache_index, bool lock)
{
const uint32_t INFINITE_AGE = 0xFFFFFFFF;
const uint32_t INFINITE_AGE = 0xFFFFFFFF; // infinitely recent

bool miss = true;

Expand Down
2 changes: 1 addition & 1 deletion src/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void console_init()
/**
* @brief Close the console
*
* Free the console system. This will clean up any dynamic memry that was in
* Free the console system. This will clean up any dynamic memory that was in
* use.
*/
void console_close()
Expand Down
2 changes: 1 addition & 1 deletion src/entrypoint.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _start:
li t0, 0x7C0000

.Lset_sp:
li t1, 0x7FFFFFF0
li t1, 0x80000000 - 0x10 /* sp = KSEG0 + memsize - 0x10 */
addu sp,t0,t1 /* init stack */
la gp, _gp /* init data pointer */
li v0, 8
Expand Down
2 changes: 1 addition & 1 deletion src/inthandler.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inthandler:
# So we keep 0-31 empty, and we start saving GPRs from 32, and then FPR. See
# the other macros to see the actual layout.
#
# *NOTE*: this layout is also exposed in C via regblock_t in exception.h
# *NOTE*: this layout is also exposed in C via reg_block_t in exception.h
# Please keep in sync!
#define EXC_STACK_SIZE (544+32)
#define STACK_GPR 32
Expand Down
3 changes: 2 additions & 1 deletion src/n64sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ void __data_cache_hit_invalidate(volatile void * addr, unsigned long length)
/**
* @brief Force a data cache writeback invalidate over a memory region
*
* Use this to force cached memory to be written to RDRAM and then cache updated.
* Use this to force cached memory to be written to RDRAM
* and then invalidate the corresponding cache lines.
*
* @param[in] addr
* Pointer to memory in question
Expand Down