Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net bpfjit_generate_code: emit the instruction correctly.
details: https://anonhg.NetBSD.org/src/rev/5f2405cbb96a
branches: trunk
changeset: 330152:5f2405cbb96a
user: rmind <rmind%NetBSD.org@localhost>
date: Wed Jun 25 01:21:36 2014 +0000
description:
bpfjit_generate_code: emit the instruction correctly.
diffstat:
sys/net/bpfjit.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r bb844da395ad -r 5f2405cbb96a sys/net/bpfjit.c
--- a/sys/net/bpfjit.c Wed Jun 25 00:21:42 2014 +0000
+++ b/sys/net/bpfjit.c Wed Jun 25 01:21:36 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpfjit.c,v 1.14 2014/06/24 22:19:36 rmind Exp $ */
+/* $NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind 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.14 2014/06/24 22:19:36 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind Exp $");
#else
-__RCSID("$NetBSD: bpfjit.c,v 1.14 2014/06/24 22:19:36 rmind Exp $");
+__RCSID("$NetBSD: bpfjit.c,v 1.15 2014/06/25 01:21:36 rmind Exp $");
#endif
#include <sys/types.h>
@@ -1670,7 +1670,7 @@
status = sljit_emit_op1(compiler,
SLJIT_MOV_P,
BJ_TMP1REG, 0,
- BJ_ARGS, offsetof(struct bpf_args, mem));
+ SLJIT_MEM1(BJ_ARGS), offsetof(struct bpf_args, mem));
if (status != SLJIT_SUCCESS)
goto fail;
Home |
Main Index |
Thread Index |
Old Index