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

Improve help system #481

Merged
merged 48 commits into from
Apr 27, 2023
Merged

Improve help system #481

merged 48 commits into from
Apr 27, 2023

Conversation

vinc
Copy link
Owner

@vinc vinc commented Apr 18, 2023

  • Add -h and --help to all commands
  • Add manual page explaining how to use the system
  • Update images in doc
  • Update shields in README
  • Update HTML pages for the website at http://moros.cc

@vinc
Copy link
Owner Author

vinc commented Apr 19, 2023

A test is generating a protection fault when print is called for the second time when we add help to read, and many other commands but not for some like write. Adding some debug output in the code sometime prevent the exception from happening and the test become successful.

DEBUG: EXCEPTION: GENERAL PROTECTION FAULT
DEBUG: Stack Frame: InterruptStackFrame {
    instruction_pointer: VirtAddr(
        0x2bcd5e,
    ),
    code_segment: 24,
    cpu_flags: 0x93,
    stack_pointer: VirtAddr(
        0x100001e82b0,
    ),
    stack_segment: 0,
}

@vinc
Copy link
Owner Author

vinc commented Apr 19, 2023

The commit that added help to read also prevented the ACPI shutdown from the halt command, but this issue disappeared a few commits later..

@vinc
Copy link
Owner Author

vinc commented Apr 22, 2023

The makefile has a new command make website to generate the HTML pages in www by running www/build.sh for the website at http://moros.cc

@vinc
Copy link
Owner Author

vinc commented Apr 22, 2023

The makefile also has a new option monitor for make qemu monitor=true to be able to take a screenshot with:

nc -N 127.0.0.1 7777 <<< "screendump moros.ppm"

The files can then be converted with:

for img in *.ppm; do convert $img ${img%.*}.png; done

@vinc vinc merged commit 2f7f33b into trunk Apr 27, 2023
@vinc vinc deleted the feature/help branch April 27, 2023 17:34
@vinc vinc mentioned this pull request Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant