From: Lawrence <lawrencio@hotpop.com>
To: zad <zacido@tiscali.it>
Cc: linux-assembly@vger.kernel.org
Subject: Re: linux system call for allocation of memory
Date: Thu, 13 Nov 2003 17:37:15 +0800 [thread overview]
Message-ID: <3FB350CB.5060401@hotpop.com> (raw)
In-Reply-To: <3FB35AA4.4050404@tiscali.it>
Thanks for your reply zad.
I just browsed the list of linux system call again, and didn't find any
related to either memory allocation or release. Does this imply one must
write linux asm program in flat model?
Thanks
Lawrence
zad ??:
>
>
> 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.
>
> -
> 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
>
next prev parent reply other threads:[~2003-11-13 9:37 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
2003-11-13 9:37 ` Lawrence [this message]
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=3FB350CB.5060401@hotpop.com \
--to=lawrencio@hotpop.com \
--cc=linux-assembly@vger.kernel.org \
--cc=zacido@tiscali.it \
/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).