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
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