Skip to content

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