Hi all, i'm trying to write a very simple serial driver (just for learning purpose!!). I wanted to know what is the siginificacne of the termios struct and where does it fit in the scheme of things. Thanx, mandeep -----Original Message----- From: Arjan van de Ven [mailto:arjanv@redhat.com] Sent: Thursday, December 11, 2003 1:29 PM To: Sivasankaran, Vijay Cc: kernelnewbies@nl.linux.org Subject: Re: Move huge chunks of data in kernel... On Thu, 2003-12-11 at 00:18, Sivasankaran, Vijay wrote: > Hello, > > Anyone know how to move move huge chunks of data in x86 kenel? > I know I can use %esi and %edi as source and destination and > use ecx to specify the number of bytes. I am wondering if there > is any better way of doing it using SSE2 (128 bit) registers? > Imagine we don't have to worry abt context-switching or saving > registers why don't you use memcpy() which will be optimized for your platform ? (and yes it can use mmx/sse2 etc if it is faster (which it btw not really is unless you use weakly ordered stores, which have the side-effect of clearing the cache so are not generally a win) -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/