*BSD News Article 23084


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:6359 comp.os.386bsd.development:1348
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!TAMUTS.TAMU.EDU!bloom-beacon.mit.edu!mcrcim.mcgill.edu!homer.cs.mcgill.ca!storm
From: storm@cs.mcgill.ca (Marc WANDSCHNEIDER)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.development
Subject: [NetBSD] What is this in SYS.h?
Date: 31 Oct 1993 07:07:00 GMT
Organization: SOCS, McGill University, Montreal, Canada
Lines: 23
Message-ID: <2avo6k$mlm@homer.cs.mcgill.ca>
NNTP-Posting-Host: mnementh.cs.mcgill.ca


MooO!

	Could some kind soul explain to me what the LCALL and SYSCALL
	macros in SYS.h in /usr/src/lib/libc/i386/sys are doing?

	THe macros look like:

#define SYSCALL(x)      2: jmp cerror; ENTRY(x); lea SYS_/**/x,%eax; LCALL(7,0); jb 2b
/* gas fucks up offset -- although we don't currently need it, do for BCS */
#define LCALL(x,y)      .byte 0x9a ; .long y; .word x

	And don't really make any sense to me.

	Thoughts?


						Marc 'em.
-- 
-----------------------------------------------------------------------------
Marc Wandschneider					    Seattle, WA
Barney the Dinosaur sings! You faint... Barney sings!  Barney sings! --More--
You Die... --More--