From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 17 18:30:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F7641065670 for ; Wed, 17 Sep 2008 18:30:17 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outH.internet-mail-service.net (outh.internet-mail-service.net [216.240.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 081778FC1D for ; Wed, 17 Sep 2008 18:30:16 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 96B162478; Wed, 17 Sep 2008 11:30:19 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id A41B02D6013; Wed, 17 Sep 2008 11:30:16 -0700 (PDT) Message-ID: <48D14CB8.5080002@elischer.org> Date: Wed, 17 Sep 2008 11:30:16 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: "Andrew N. Below" References: <046601c918cc$786cc8c0$970da8c0@jam.zenon.net> <48D123DD.2030701@elischer.org> <064901c918e2$803df770$970da8c0@jam.zenon.net> In-Reply-To: <064901c918e2$803df770$970da8c0@jam.zenon.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: amd64, COMPAT_IA32 & syscall diverts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 18:30:17 -0000 Andrew N. Below wrote: >> Andrew N. Below wrote: >>> Hi all. >>> >>> We have loadable kernel module with >>> several syscall intercepting functions >>> (e.g., sysent[SYS___sysctl].sy_call). >>> Earlier, this module was built and used >>> on i386 platform, now we have to run it >>> on amd64. For some reasons we have to >>> enable COMPAT_IA32 option in kernel. >>> >>> Our syscall wrapper sucessfully receiving >>> syscalls from amd64 binaries, but we have >>> nothing from old i386 binaries. >>> >>> Seems like these calls are made bypassing >>> our kernel module. >> x86 binaries use a separate syscall table, so you need to patch >> both tables. > > Where can I find something about that table? the compat stuff is in /sys/compat/ia32/ So I would start there and follow the logic. > > Nothing interesting in sysent.h/syscall.h... > > -- > Andrew > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"