corpnewt / SSDTTime

SSDT/DSDT hotpatch attempts.
MIT License
1.06k stars 181 forks source link

HPET _CRS to XCRS Rename has a wrong hex number #33

Closed Cortana666 closed 4 years ago

Cortana666 commented 4 years ago

The hexadecimal numbers generated by this script are 255f435253 and 2558435253,They are converted to strings of %_ CRS and %XCRS

corpnewt commented 4 years ago

This is by design. If you did a blanket rename of all instances of _CRS to XCRS - you would be forcing any device that has a defined _CRS method to try and utilize IRQs 0, 8, and 11 - which would force IRQ conflicts; thus defeating the entire purpose of the FixHPET approach. The reason it's padded is to ensure that the hex we're looking for only occurs once in the DSDT - thus only renaming HPET's _CRS method, and not every instance within the DSDT.

-CorpNewt