Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/powerpc



Module Name:    src
Committed By:   mrg
Date:           Sun Jan 21 08:46:49 UTC 2018

Modified Files:
        src/sys/arch/powerpc/include: spr.h
        src/sys/arch/powerpc/oea: cpu_subr.c ofwoea_machdep.c

Log Message:
fix ofppc/pegasosII (and maybe others).

don't assume PPC_OEA64_BRIDGE means we have a 64 bit cpu (code
for 64 bit in bridge and normal 32 bit can co-exist due to
fixups the early boot code does has, and ofppc builds GENERIC
this way):
- fix mtmsr()/mfmsr() to use the right method based upon the
  actually cpu booted on.
- fix cpu_setup() to have 32 bit and 64 bit hid0 variables
  and operate on the right one based upon the current cpu.
  restore a minor optimisation of not writing hid0 if it
  didn't change.

in set_timebase() check if OF_finddevice("/cpus/@0") failed
and returned -1 before using it for OF_getprop().


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/powerpc/include/spr.h
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/powerpc/oea/cpu_subr.c
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/powerpc/oea/ofwoea_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index