Re: Writing Linux Device drivers with NASM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






From: Frank Kotler <fbkotler@xxxxxxxxxxx>
To: ALberto Andres <betorumbero@xxxxxxxxxxx>
CC: linux-assembly@xxxxxxxxxxxxxxx
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/

-
: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux