Skip to content

Move method context to do_execute_method#296

Merged
IsaacWoods merged 1 commit into
rust-osdev:mainfrom
martin-hughes:method-context-move
May 9, 2026
Merged

Move method context to do_execute_method#296
IsaacWoods merged 1 commit into
rust-osdev:mainfrom
martin-hughes:method-context-move

Conversation

@martin-hughes
Copy link
Copy Markdown
Contributor

@martin-hughes martin-hughes commented May 1, 2026

A potential fix for #292.

As discussed in the issue, I've moved the method context into do_execute_method. It's a pretty straightforward change.

I can't see any particular downside so I've opened this PR - hopefully @IsaacWoods you won't remember a key reason why this is bad 😆

Fix #292

Then there's no way for re-entrancy to corrupt the stack.

Fixes rust-osdev#292.
@IsaacWoods IsaacWoods merged commit d37640b into rust-osdev:main May 9, 2026
5 checks passed
@martin-hughes martin-hughes deleted the method-context-move branch May 12, 2026 08:11
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.

PCI: Using Method instead of Name for _BBN, _SEG seems to cause infinite loop

2 participants