Fix ZERO_EDX() macro from the previous commit. It was emitting
`xor %ecx, %ecx', not `xor %edx, %edx'.
This commit is contained in:
parent
d1c004f7d1
commit
50c9fad9ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153177
@ -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_ */
|
||||
|
@ -398,7 +398,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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user