freebsd-dev/sys/mips/cavium
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
..
cryptocteon sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octe sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
usb sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
asm_octeon.S
ciu.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cvmx_config.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
files.octeon1
if_octm.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obio.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
obiovar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_cop2.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_cop2.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
octeon_ds1337.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octeon_ebt3000_cf.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octeon_gpio.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_gpiovar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_irq.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octeon_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_mp.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_nmi.S
octeon_pci_console.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_pcmap_regs.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octeon_pmc.c hwpmc: simplify calling convention for hwpmc interrupt handling 2018-06-08 04:58:03 +00:00
octeon_rnd.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_rtc.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octeon_wdog.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopci_bus_space.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopci.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
octopcireg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
octopcivar.h sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
std.octeon1
uart_bus_octeonusart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
uart_cpu_octeonusart.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
uart_dev_oct16550.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00