On Sun, Sep 22, 2024 at 08:17:49PM +0300, Sergii Dmytruk wrote: > From: Daniel Kiper <daniel.ki...@oracle.com> > > Currently rdmsr and wrmsr commands have own MSR support detection code. > This code is the same. So, it is duplicated. Additionally, this code > cannot be reused by others. Hence, extract this code to a function and > make it public. By the way, improve a code a bit. > > Additionally, use GRUB_ERR_BAD_DEVICE instead of GRUB_ERR_BUG to signal > an error because errors encountered by this new routine are not bugs. > > Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com> > Signed-off-by: Sergii Dmytruk <sergii.dmyt...@3mdeb.com> > Reviewed-by: Ross Philipson <ross.philip...@oracle.com>
Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel