freebsd-skq/sys/powerpc
Matt Macy eb7c901995 hwpmc: simplify calling convention for hwpmc interrupt handling
pmc_process_interrupt takes 5 arguments when only 3 are needed.
cpu is always available in curcpu and inuserspace can always be
derived from the passed trapframe.

While facially a reasonable cleanup this change was motivated
by the need to workaround a compiler bug.

core2_intr(cpu, tf) ->
  pmc_process_interrupt(cpu, ring, pmc, tf, inuserspace) ->
    pmc_add_sample(cpu, ring, pm, tf, inuserspace)

In the process of optimizing the tail call the tf pointer was getting
clobbered:

(kgdb) up
    at /storage/mmacy/devel/freebsd/sys/dev/hwpmc/hwpmc_mod.c:4709
4709                                pmc_save_kernel_callchain(ps->ps_pc,
(kgdb) up
1205                    error = pmc_process_interrupt(cpu, PMC_HR, pm, tf,

resulting in a crash in pmc_save_kernel_callchain.
2018-06-08 04:58:03 +00:00
..
aim On POWER9 clear the HID0_RADIX before enabling the page tables 2018-05-26 04:33:19 +00:00
booke Print the full-width pointer values in hex. 2018-05-28 00:19:08 +00:00
conf Enable kernel dump features in GENERIC for most platforms. 2018-05-19 19:53:23 +00:00
cpufreq [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
fpu sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
include Added ptrace support for reading/writing powerpc VSX registers 2018-06-02 19:17:11 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Remove dead errata fixup code 2018-05-01 04:31:17 +00:00
ofw Fix excise_initrd_region() to support 32- and 64-bit initrd params. 2018-06-07 21:24:21 +00:00
powermac Fix null pointer dereference on nodes without a "compatible" property. 2018-04-30 19:37:32 +00:00
powernv Remove a debug printf from opal_pci driver 2018-05-31 04:11:40 +00:00
powerpc hwpmc: simplify calling convention for hwpmc interrupt handling 2018-06-08 04:58:03 +00:00
ps3 ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
pseries Add a comment explaining the need of a global temporary variable 2018-05-22 03:24:16 +00:00
psim Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00