Messages in this thread | ![/](/images/icornerl.gif) | | From | Oliver Xymoron <> | Subject | Re: KNI in userspace- kernel patch? | Date | Mon, 27 Mar 2000 18:10:02 -0600 |
| |
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/
| ![\](/images/icornerr.gif) |