Skip to content

Commit

Permalink
Merge 8be5059 into f9db64e
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-jouet committed Sep 6, 2016
2 parents f9db64e + 8be5059 commit 79f94ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vm/ubpf_jit_x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ translate(struct ubpf_vm *vm, struct jit_state *state, char **errmsg)
emit_mov(state, RDI, map_register(1));
}

/* Allocate stack space */
emit_alu64_imm32(state, 0x81, 5, RSP, STACK_SIZE);

/* Copy stack pointer to R10 */
emit_mov(state, RSP, map_register(10));

/* Allocate stack space */
emit_alu64_imm32(state, 0x81, 5, RSP, STACK_SIZE);

int i;
for (i = 0; i < vm->num_insts; i++) {
struct ebpf_inst inst = vm->insts[i];
Expand Down

0 comments on commit 79f94ef

Please sign in to comment.