From owner-freebsd-hackers Sat Jul 11 06:39:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA03106 for freebsd-hackers-outgoing; Sat, 11 Jul 1998 06:39:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.nternet.net (ns.nternet.net [206.154.20.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA03101 for ; Sat, 11 Jul 1998 06:39:25 -0700 (PDT) (envelope-from jvz@ns.nternet.net) Received: from localhost (jvz@localhost) by ns.nternet.net (8.8.8/8.8.7) with SMTP id JAA04575 for ; Sat, 11 Jul 1998 09:48:09 -0400 (EDT) Date: Sat, 11 Jul 1998 09:48:09 -0400 (EDT) From: Jonny To: hackers@FreeBSD.ORG Subject: Assembly.. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, im having a bit of a problem understanding the way freebsd does its syscalls in asm.. ive searched, and read the as info pages numerous times, and looked over kernel src, along with compiling simple C code with -S -o blah.s i was told fbsd uses 'call gates' so that where linux would do movl $1,%eax // exit() syscall in linux movl $0,%ebx // exit code int $0x80 // do the syscall i was told fbsd is similar only where linux does the interrupt it would do a call ie; call 0x7,0x0 which gives me errors from as (no known i386 instructions) i understand i could do the 'call syscallName' but i want a thorough understanding on how these ' call gates' work.. if someone could explain a bit how they work and are called.. and provide me a sample standalone asm code .. heck 'hello world' for that matter.. i would greatly appreciate it. thanx in advance. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message