Any way to edit MSR registers under Haiku?

I’m used to running wrmsr on other OSes. Compiling the linux version from github doesn’t work because the program is hardwired to use /dev/cpu , which obviously doesn’t exist on Haiku.

Is there any way to edit msr on haiku without using bootloaders like grub?

I can’t answer it but I can point you to

Hmm, I don’t think we expose this to userland yet.
You could have a look at the poke driver which exposes IO and other things to userland. see src/add-ons/kernel/drivers/misc/poke.cpp.

1 Like

I was thinking that this could be an easy task… I was wrong :smiley:

How can I execute x86_read_msr on a specific cpu?
Would you fit that feature on poke driver or in a custom one?



This is interesting. Maybe I can use it to activate watchdog functionality in our company’s app. As it knows exactly where to poke and peek so to speak :stuck_out_tongue_winking_eye: