lkml.org 
[lkml]   [2000]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: KNI in userspace- kernel patch?
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.037 / U:1.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site