linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zad <zacido@tiscali.it>
To: linux-assembly@vger.kernel.org
Subject: Re: linux system call for allocation of memory
Date: Thu, 13 Nov 2003 10:19:16 +0000	[thread overview]
Message-ID: <3FB35AA4.4050404@tiscali.it> (raw)
In-Reply-To: 3FB33D54.9000605@cbf.chinese2000.net



Lawrence wrote:
> Hi Linux asm gurus,
> 
> 
> I would like to know if the linux kernel has the syscall for memory
> manipulation(allocation, release and resize) that synonymous with DOS
> 48H of INT 21.  I've read some documents saying that these are
> implemented in C library.
> 
> I know that I can use the flat memory model, but I would like to take
> the allocaion/release approach, for easy porting my current DOS program
> to Linux.
> 
> Thanks
> Lawrence
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

So :
1) If u want call a linux'system call u need to use the interrupt 0x80 
with the follown convenctions:
	-eax contains the syscall number
	-ebx ecx edx esi edi the first argument ,second ,and third and 			so 
one till the six
	-the return value of a syscall is stored in eax reg.
2) a complete list of sys call is in the file 
/linux/include/asm/unistd.h where linux is the base tree of the kernel 
source.


  reply	other threads:[~2003-11-13 10:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13  8:14 linux system call for allocation of memory Lawrence
2003-11-13 10:19 ` zad [this message]
2003-11-13  9:37   ` Lawrence
2003-11-13 11:00     ` zad
2003-11-13 13:38     ` peter w krause
2003-11-13 20:34 ` Brian Raiter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FB35AA4.4050404@tiscali.it \
    --to=zacido@tiscali.it \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).