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

Better IRX error handling #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Better IRX error handling #165

wants to merge 2 commits into from

Conversation

israpps
Copy link
Contributor

@israpps israpps commented Nov 10, 2023

IRX ID must be > 0, else, an error ocurred while loading the module (see kerr.h on IOP Kernel)

return value can be 0, 1 or 2 (ref)

It could mean an error or not depending on the module behaviour, but for all the modules you use, returning 1 means an error.
0: module remains on RAM
1: module requested to be unloaded during startup (eg: error, or module does not require to remain resident)
2: module remains on RAM, but supports to be unloaded anytime by MODLOAD, (only if both module and MODLOAD version support it)

IRX ID must be > 0, else, an error ocurred while loading the module (see kerr.h on IOP Kernel)

return value can be `0`, `1` or `2`

It could mean an error or not depending on the module behaviour, but for all the modules you use, returning 1 means an error.
0: module remains on RAM
1: module requested to be unloaded during startup (eg: error, or module does not require to remain resident)
2: module remains on RAM, but supports to be unloaded anytime by MODLOAD, (only if both module and MODLOAD version support it)
Copy link
Owner

@h4570 h4570 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, great catch!

However, I noticed a typos in your proposed changes.
It would be great if you could correct them and ensure the code compiles successfully.
Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission!
Thanks for your contribution and attention to detail.
Keep up the good work!

@Wolf3s
Copy link
Contributor

Wolf3s commented Nov 11, 2023

Hi, great catch!

However, I noticed a typos in your proposed changes. It would be great if you could correct them and ensure the code compiles successfully. Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission! Thanks for your contribution and attention to detail. Keep up the good work!

I

Hi, great catch!

However, I noticed a typos in your proposed changes. It would be great if you could correct them and ensure the code compiles successfully. Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission! Thanks for your contribution and attention to detail. Keep up the good work!

Hi, great catch!

However, I noticed a typos in your proposed changes. It would be great if you could correct them and ensure the code compiles successfully. Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission! Thanks for your contribution and attention to detail. Keep up the good work!

Hi, great catch!

However, I noticed a typos in your proposed changes. It would be great if you could correct them and ensure the code compiles successfully. Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission! Thanks for your contribution and attention to detail. Keep up the good work!

Did you saw some mistakes on the previous commit?

@israpps
Copy link
Contributor Author

israpps commented Nov 11, 2023

Hi, great catch!

However, I noticed a typos in your proposed changes.
It would be great if you could correct them and ensure the code compiles successfully.
Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.

Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.

I'm looking forward to your revised submission!
Thanks for your contribution and attention to detail.
Keep up the good work!

I tried, but compiler complains on some issues related to search path for limits.h

SifExecModuleBuffer(&bdm_irx, size_bdm_irx, 0, nullptr, &ret);
TYRA_ASSERT(ret >= 0, "Failed to load module: bdm_irx");
irx_id = SifExecModuleBuffer(&bdm_irx, size_bdm_irx, 0, nullptr, &ret);
TYRA_ASSERT((ret != 1) && (irx_id > 0), "Failed to load module: bdm_irx id:", idx_id, ", ret:", ret);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

irx_id = SifExecModuleBuffer(&bdm_irx, size_bdm_irx, 0, nullptr, &ret);
TYRA_ASSERT((ret != 1) && (irx_id > 0), "Failed to load module: bdm_irx id:", idx_id, ", ret:", ret);

idx_id is not defined.

@Wolf3s
Copy link
Contributor

Wolf3s commented Nov 11, 2023

Hi, great catch!
However, I noticed a typos in your proposed changes.
It would be great if you could correct them and ensure the code compiles successfully.
Additionally, I would kindly suggest testing the code thoroughly before submitting future PRs, as this helps in maintaining the quality and reliability of our codebase.
Once you've made the necessary corrections and confirmed that everything is working as expected, please update the PR.
I'm looking forward to your revised submission!
Thanks for your contribution and attention to detail.
Keep up the good work!

I tried, but compiler complains on some issues related to search path for limits.h

I will create a commit to fix this

@h4570
Copy link
Owner

h4570 commented Nov 11, 2023

@Wolf3s, @israpps

Did @israpps agreed on this?
If he want, he can finish his PR.

@Wolf3s
Copy link
Contributor

Wolf3s commented Nov 11, 2023

@Wolf3s, @israpps

Did @israpps agreed on this? If he want, he can finish his PR.

yes, that´s why he should finish this one soon.

@h4570
Copy link
Owner

h4570 commented Nov 13, 2023

Please merge latest master to this branch.
Thanks!

@h4570 h4570 added the refactor This needs to be refactored label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor This needs to be refactored
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants