HomeFreeBSD

[PowerPC] Make cpu frequency detection endian-independent

Description

[PowerPC] Make cpu frequency detection endian-independent

On ibm,extended-clock-frequency, ensure we be64toh() the value.

On clock-frequency, remove the right-shifting hack (which was needed due to
reading a 32 bit value into a 64 bit variable) and switch to OF_getencprop()
for reading (which will handle endian conversion internally.)

Reviewed by: jhibbits (in irc)
Sponsored by: Tag1 Consulting, Inc.

Details

Provenance
bdragonAuthored on
Parents
rS365722: MF12 r365662:
Branches
Unknown
Tags
Unknown