Re: Writing Linux Device drivers with NASM

"ALberto Andres" <[email protected]> Mon, 13 Mar 2006 18:38:26 +0100
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>


>From: Frank Kotler <[email protected]>
>To: ALberto Andres <[email protected]>
>CC: [email protected]
>Subject: Re: Writing Linux Device drivers with NASM
>Date: Mon, 13 Mar 2006 11:56:27 -0500
>
>ALberto Andres wrote:
>>Hi everybody, I'm writing a guide about device drivers in assembly under 
>>linux. I'm using NASM.  If anybody is interested here is the URL:
>>
>>http://albertoandreotti.5000megs.com/
>
>Great, Alberto! Couple thing seems strange to me. I don't know anything 
>about device drivers, so perhaps it really *is* that strange...
>
>You say:
>
>    2.      Stack cleanup is performed by the called function.
>    3.      Function name is decorated by prepending an underscore 
>character
>
>But that doesn't seem to be what you show...
>
>And... your strings have got CRs in 'em. Is that normal/required for device 
>drivers?
>
>I'm sure I'll have more questions... Great resource. Thanks!
>
>Best,
>Frank
>

I think you are talking about the call to the printk function. The string 
has a line feedback and carry return and a NULL (number 0) at the end. The 
format of the string is the same as the required for printf. The first two 
numbers are printed by printk and the zero indicates the end of the 
string(the convention followed by C strings).

Thanks for your interest.

_________________________________________________________________
Descubre la descarga digital con MSN Music. Más de un millón de canciones. 
http://music.msn.es/