Module Name:    src
Committed By:   alnsn
Date:           Wed Jun 25 11:13:28 UTC 2014

Modified Files:
        src/sys/net: bpfjit.c

Log Message:
Use SLJIT_MOV_P to copy extmem pointer.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/net/bpfjit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/bpfjit.c
diff -u src/sys/net/bpfjit.c:1.15 src/sys/net/bpfjit.c:1.16
--- src/sys/net/bpfjit.c:1.15	Wed Jun 25 01:21:36 2014
+++ src/sys/net/bpfjit.c	Wed Jun 25 11:13:28 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind Exp $	*/
+/*	$NetBSD: bpfjit.c,v 1.16 2014/06/25 11:13:28 alnsn Exp $	*/
 
 /*-
  * Copyright (c) 2011-2014 Alexander Nasonov.
@@ -31,9 +31,9 @@
 
 #include <sys/cdefs.h>
 #ifdef _KERNEL
-__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.16 2014/06/25 11:13:28 alnsn Exp $");
 #else
-__RCSID("$NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind Exp $");
+__RCSID("$NetBSD: bpfjit.c,v 1.16 2014/06/25 11:13:28 alnsn Exp $");
 #endif
 
 #include <sys/types.h>
@@ -847,7 +847,7 @@ emit_memload(struct sljit_compiler* comp
 	} else {
 		/* copy extmem pointer to the tmp1 register */
 		status = sljit_emit_op1(compiler,
-		    SLJIT_MOV_UI,
+		    SLJIT_MOV_P,
 		    BJ_TMP1REG, 0,
 		    SLJIT_MEM1(SLJIT_LOCALS_REG),
 		    offsetof(struct bpfjit_stack, extmem));
@@ -875,7 +875,7 @@ emit_memstore(struct sljit_compiler* com
 	} else {
 		/* copy extmem pointer to the tmp1 register */
 		status = sljit_emit_op1(compiler,
-		    SLJIT_MOV_UI,
+		    SLJIT_MOV_P,
 		    BJ_TMP1REG, 0,
 		    SLJIT_MEM1(SLJIT_LOCALS_REG),
 		    offsetof(struct bpfjit_stack, extmem));

Reply via email to