delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/24/17:34:26

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: asmlinkage
Date: 24 Jan 2000 13:17:45 -0800
Organization: InterWorld Communications
Lines: 22
Message-ID: <83ln5fkw3q.fsf@mercury.st.hmc.edu>
References: <86i6il$q5$1 AT news DOT kabelfoon DOT nl>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 948748775 94644 134.173.45.219 (24 Jan 2000 21:19:35 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 24 Jan 2000 21:19:35 GMT
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"David van Leerdam" <davidvl AT kabelfoon DOT nl> writes:

> Hi,
> 
> What exactly does the 'asmlinkage' keyword do? I couldn't find any useful
> information on the web, even not on the DJGPP site. Also, when to use this
> keyword? Thanks in advance.

It's not a keyword, AFAIK.  But I've seen some programs (such as the
Linux kernel) define this as whatever magic the compiler needs to
generate a function that fits with their expectations of how to call
it from assembly language.

So it doesn't have any predefined meaning; it can do whatever you
want.

Why?

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019