Skip to content

Log CPU state on page fault#140

Merged
DrDeano merged 1 commit intodevelopfrom
feature/log-cpu-state-on-page-fault
May 6, 2020
Merged

Log CPU state on page fault#140
DrDeano merged 1 commit intodevelopfrom
feature/log-cpu-state-on-page-fault

Conversation

@DrDeano
Copy link
Member

@DrDeano DrDeano commented May 6, 2020

When a page fault occurs, will log the CPU state and the control registers.

@DrDeano DrDeano requested a review from SamTebbs33 May 6, 2020 14:07
Copy link
Collaborator

@SamTebbs33 SamTebbs33 left a comment

Choose a reason for hiding this comment

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

Nice. In the future we could interpret the error code, eip and cr2 to give a human readable description of what went wrong.

Copy link
Collaborator

@SamTebbs33 SamTebbs33 left a comment

Choose a reason for hiding this comment

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

Nice one

Moved CR assembly to arch file


Fixed new line


Moved control registers from arch to paging
@DrDeano DrDeano force-pushed the feature/log-cpu-state-on-page-fault branch from 367457d to 16b07bf Compare May 6, 2020 22:04
@DrDeano DrDeano merged commit dac57fc into develop May 6, 2020
@DrDeano DrDeano deleted the feature/log-cpu-state-on-page-fault branch May 6, 2020 22:07
@SamTebbs33 SamTebbs33 mentioned this pull request Jul 20, 2020
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.

2 participants