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

Kernel: use correct deci_tty_write hook offset in 9.00 #164

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pipehuffer
Copy link

The TTYRedirector plugin uses printf_hook's offset to replace in the deci_tty_cdev's struct cdevsw instance, the d_write field.
This patch sets the offset to the d_write field itself, where it previously was pointing to the start of the cdevsw instance.

This affects firmware version 9.00.
Tested with LLVM 16.0.3 and on top of the chendo-offset-fix branch and #162

@pipehuffer pipehuffer changed the title kernel: use correct deci_tty_write hook offset in 9.00 Kernel: use correct deci_tty_write hook offset in 9.00 Jun 14, 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