Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2010 09:28:12 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Subject:   Re: [PATCH] hwpmc(4) syscall arguments fix
Message-ID:  <201011010928.12562.jhb@freebsd.org>
In-Reply-To: <4CCB62D6.1050808@bluezbox.com>
References:  <4CCB62D6.1050808@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011010928.12562.jhb>