Skip to content
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
4 changes: 2 additions & 2 deletions iop/system/sysclib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ balancing between size, speed, and features.

In order to use this module in your program, you must integrate the module into
an IOPRP image, then load the image with `UDNL`.\
Using `LoadModule` or `LoadModuleBuffer` directly will not work, because the
module is already loaded at IOP boot.
Using `LoadModule` or `LoadModuleBuffer` directly will work, but is not
recommended because the old version of the module will remain in memory.
4 changes: 2 additions & 2 deletions iop/system/sysclib/src/_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ extern struct irx_export_table _exp_sysclib;
extern struct irx_export_table _exp_stdio;

int _start(int argc, char *argv[]) {
(void)argc;
(void)argv;

if (RegisterLibraryEntries(&_exp_sysclib) != 0)
return MODULE_NO_RESIDENT_END;
if (RegisterLibraryEntries(&_exp_stdio) != 0)
// Unofficial: only attempt to register stdio stub if in boot stage
if (!argc && RegisterLibraryEntries(&_exp_stdio) != 0)
return MODULE_NO_RESIDENT_END;

return MODULE_RESIDENT_END;
Expand Down
Loading