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

Add lazy allocation #275

Merged
merged 8 commits into from
Jun 6, 2022
Merged

Add lazy allocation #275

merged 8 commits into from
Jun 6, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Nov 27, 2021

No description provided.

@vinc
Copy link
Owner Author

vinc commented Apr 11, 2022

Lazy alloc works for nasm binaries:

> /bin/sleep
DEBUG: page fault
DEBUG: error=CAUSED_BY_WRITE
DEBUG: CR2=0x444445440000
DEBUG: alloc addr=0x444445440000 size=1
DEBUG: alloc page Page[4KiB](0x444445440000)
DEBUG: alloc frame PhysFrame[4KiB](0x1412000)

But there are still some issues for rust binaries:

> /bin/hello
DEBUG: page fault
DEBUG: error=CAUSED_BY_WRITE
DEBUG: CR2=0x444445442000
DEBUG: alloc addr=0x444445442000 size=1
DEBUG: alloc page Page[4KiB](0x444445442000)
DEBUG: alloc frame PhysFrame[4KiB](0x1414000)
DEBUG: page fault
DEBUG: error=CAUSED_BY_WRITE
DEBUG: CR2=0x444445443000
DEBUG: alloc addr=0x444445443000 size=1
DEBUG: alloc page Page[4KiB](0x444445443000)
DEBUG: alloc frame PhysFrame[4KiB](0x1415000)
DEBUG: page fault
DEBUG: error=CAUSED_BY_WRITE
DEBUG: CR2=0x444445444000
DEBUG: alloc addr=0x444445444000 size=1
DEBUG: alloc page Page[4KiB](0x444445444000)
DEBUG: alloc frame PhysFrame[4KiB](0x1416000)
DEBUG: page fault
DEBUG: error=USER_MODE
DEBUG: CR2=0x33
DEBUG: alloc addr=0x33 size=1
DEBUG: alloc page Page[4KiB](0x0)
DEBUG: alloc frame PhysFrame[4KiB](0x1417000)
DEBUG: general protection fault
DEBUG: error=0
DEBUG: CR2=0x33
DEBUG: alloc addr=0x33 size=1
DEBUG: alloc page Page[4KiB](0x0)
DEBUG: alloc frame PhysFrame[4KiB](0x1418000)
DEBUG: Could not map Page[4KiB](0x0)

@vinc vinc marked this pull request as ready for review June 6, 2022 13:53
@vinc vinc merged commit 13ca997 into trunk Jun 6, 2022
@vinc vinc deleted the feature/lazy-alloc branch June 6, 2022 13:53
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