[PATCH] hwpmc(4) syscall arguments fix

John Baldwin jhb at freebsd.org
Mon Nov 1 15:20:03 UTC 2010


On Friday, October 29, 2010 8:12:06 pm Oleksandr Tymoshenko wrote:
>      I ran into problems trying to get hwpmc to work on 64-bit MIPS
> system with big endian byte order. Turned out hwpmc syscall handler
> is byte-order and register_t size agnostic unlike the rest of syscalls.
> The best solution I have so far is a copy sys/sysproto.h approach:
> http://people.freebsd.org/~gonzo/patches/hwpmc-syscall.diff
> 
> Any other ideas how to get it fixed in more clean way?

Yes, a better way would be to add pmc_syscall() to sys/kern/syscalls.master as 
a NOSTD system call.  Then it's arguments would be included in sysproto.h 
directly.

-- 
John Baldwin


More information about the freebsd-hackers mailing list