From owner-freebsd-hackers Sat Jun 3 22:35:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.bfm.org (mail.bfm.org [216.127.218.26]) by hub.freebsd.org (Postfix) with ESMTP id 470B937B585 for ; Sat, 3 Jun 2000 22:35:27 -0700 (PDT) (envelope-from adam@whizkidtech.net) Received: from WhizKid (r5.bfm.org [216.127.220.101]) by mail.bfm.org (Post.Office MTA v3.5.3 release 223 ID# 0-52399U2500L250S0V35) with SMTP id org; Sun, 4 Jun 2000 00:36:19 -0500 Message-Id: <3.0.6.32.20000604003505.008bfb10@mail85.pair.com> X-Sender: whizkid@mail85.pair.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Sun, 04 Jun 2000 00:35:05 -0500 To: "Thomas M. Sommers" , freebsd-hackers@FreeBSD.ORG From: "G. Adam Stanislav" Subject: Re: Assembly programming under FreeBSD In-Reply-To: <3939A7E9.F948018@mail.ptd.net> References: <200006031520.LAA06255@rac4.wam.umd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 20:50 03-06-2000 -0400, Thomas M. Sommers wrote: >It isn't the same as Linux's. Linux passes arguments to syscalls in >registers, while FreeBSD puts them on the stack. It is often possible to write asm code that works on both: You put the values in the registers and then you push the registers. Cheers, Adam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message