Re: KNI in userspace- kernel patch?

From: Oliver Xymoron (oxymoron@waste.org)
Date: Mon Mar 27 2000 - 19:10:02 EST


On Mon, 27 Mar 2000, David Konerding wrote:

> But the following code just gives a segfault. Am I missing something from my
> KNI code?
>
> int a=5;
> int test2() {
> __asm__("movq 0x00(%0), %%mm0\n\t"
> "movq 0x08(%0), %%mm1\n\t"
> "movq 0x10(%0), %%mm2\n\t"
> "movq 0x18(%0), %%mm3\n\t"
> :: "r" (a));
> }

Uh, you seem to be treating "a" as a pointer, so you're dereferencing
something in small-offset-from-null-pointer-land.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.." 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:21 EST