Skip to content

v0.7.0#11

Merged
0vercl0k merged 18 commits intomainfrom
fbl_fix#10
Sep 2, 2025
Merged

v0.7.0#11
0vercl0k merged 18 commits intomainfrom
fbl_fix#10

Conversation

@0vercl0k
Copy link
Owner

@0vercl0k 0vercl0k commented Aug 17, 2025

This PR introduces additional APIs to be able to do virtual memory operations with a custom dtb. On top of that:

  • it fixes a bug in the virtual memory read code. If you were reading bytes straddling two pages where the second page was not accessible for example, the code would early return with a failure although it had succeeded in reading the first page.
  • virt_translate has been updated to not only return a success / failure but more information about the page permissions, what type of page it is & which pfn / at what offset the content is at.
  • when reading from a large or huge page, the virt_read algorithm has been improved to avoid doing a virtual to physical memory translation for each 4K pages. Before, it would assume every page is 4K big but now it is able to know what type of page it is reading from and as a result it can take advantage of knowing how big they are (extra work will be needed to do the same as the phy_translate level).
  • the hexdump function in the parser example has been improved in a bunch of ways.

@0vercl0k 0vercl0k linked an issue Aug 17, 2025 that may be closed by this pull request
@0vercl0k 0vercl0k changed the title Add dtb variation for virt mem APIs v0.7.0 Aug 31, 2025
@0vercl0k 0vercl0k merged commit b8b3ab7 into main Sep 2, 2025
14 checks passed
@0vercl0k 0vercl0k deleted the fbl_fix#10 branch September 2, 2025 15:13
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.

Add Directory Table Base argument in VM translate/read methods

1 participant