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

Some tip or something on Memory detection #3

Open
1vnt opened this issue Oct 30, 2021 · 2 comments
Open

Some tip or something on Memory detection #3

1vnt opened this issue Oct 30, 2021 · 2 comments
Labels
future work Potential expansions for the project

Comments

@1vnt
Copy link

1vnt commented Oct 30, 2021

Im relativly lost, searching for a way to get the available physical memory. This article on osdev was what I tried to implement. Running it in the real mode sector, but its infinitly looping, do you have any idea?

@gmarino2048
Copy link
Owner

Hi @legendary-cookie, unfortunately I haven't looked much into memory detection for this project. Since we're using an emulator, I figured it was safe to assume that the resources on the "machine" would be more than capable of handling such a simple program. I like the idea of doing memory detection, and might add an extension to the project which includes this in the future. Unfortunately, without more information on your specific implementation I can't figure out exactly what's happening.

For debugging, I would start with exactly what they have in the article and try to add your own logging to see what might be happening. Your "infinite loop" might be a triple fault on the processor which will cause it to reboot. If this happened, you'd see the existing logs sort of flicker forever. A true infinite loop in your code would mean that the code appears to freeze or prints the same thing over forever. I know it's not much, but I hope this helps in the meantime

@gmarino2048 gmarino2048 added the future work Potential expansions for the project label Mar 13, 2022
@1vnt
Copy link
Author

1vnt commented Mar 20, 2022

Alright, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future work Potential expansions for the project
Projects
None yet
Development

No branches or pull requests

2 participants