From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 10:32:02 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 369B01065696 for ; Mon, 16 Aug 2010 10:32:02 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 087E98FC13 for ; Mon, 16 Aug 2010 10:32:01 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 5B30C338 for ; Mon, 16 Aug 2010 06:32:01 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 16 Aug 2010 06:32:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:subject:message-id:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=w2fx5PsQt8WFBcPS9QOyKcO2MRs=; b=q6Kx8cbiS+Ql6eOEBiR2vL8/KmI1fuxcQYHu7sYW5U1IItL3vgcvYoiNMbRx7dTPtgr1stpbRtU5kW8CZN+j1tj3PHw6Rpi/yEdKfxkg5Ut+Mo5tUxq4BdVL841/opjGVxUaWNbY1x586MCMY/ircLrUAttzCNtXpQaIVEBtYHg= X-Sasl-enc: PbNmw7fKtnMug0Oawat1L9q0YZ0s8Zxr+gO+luNski1I 1281954720 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 638354056D5 for ; Mon, 16 Aug 2010 06:32:00 -0400 (EDT) Date: Mon, 16 Aug 2010 22:31:53 +1200 From: Andrew Turner To: freebsd-arm@freebsd.org Message-ID: <20100816223153.31b36dba@fubar.geek.nz> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Update syscall handling X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 10:32:02 -0000 As part of my work on getting the kernel running with the EABI I updated how syscalls are handled to use the common syscallenter/syscallret functions. I moved the arg parsing code to cpu_fetch_syscall_args where it belongs and removed the duplicate code from syscall to be replaced with syscallenter and syscallret. I've tested on my LN2410SBC but would like a review before committing. The td->td_ar == NULL check is from the original function. Do we still need it? ARM appears to be the only arch with this check. Andrew [1] http://fubar.geek.nz/files/freebsd/freebsd-arm-syscall.diff