summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2005-12-06 20:11:07 +0000
committerjkim <jkim@FreeBSD.org>2005-12-06 20:11:07 +0000
commit18c4e589cc668b34bf77f14994af4e2be567c73b (patch)
tree9e61ec92189730b7ea7f238f67161f9bc5e3e4b3 /sys/amd64
parent33f5a902c54a3c48d2ad668c3399f8b5d3cbe1aa (diff)
downloadFreeBSD-src-18c4e589cc668b34bf77f14994af4e2be567c73b.zip
FreeBSD-src-18c4e589cc668b34bf77f14994af4e2be567c73b.tar.gz
Fix ZERO_EDX() macro from the previous commit. It was emitting
`xor %ecx, %ecx', not `xor %edx, %edx'.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/bpf_jit_machdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/bpf_jit_machdep.h b/sys/amd64/amd64/bpf_jit_machdep.h
index dab2477..b6a12f1 100644
--- a/sys/amd64/amd64/bpf_jit_machdep.h
+++ b/sys/amd64/amd64/bpf_jit_machdep.h
@@ -431,7 +431,7 @@ typedef void (*emit_func)(bpf_bin_stream *stream, u_int value, u_int n);
/* xor edx,edx */
#define ZERO_EDX() do { \
emitm(&stream, 0x31, 1); \
- emitm(&stream, 0xc9, 1); \
+ emitm(&stream, 0xd2, 1); \
} while (0)
#endif /* _BPF_JIT_MACHDEP_H_ */
OpenPOWER on IntegriCloud