Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Jan 15, 2019
1 parent 0dec23f commit 3afac5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl CallFrames {
ptrs
}

/// Get the address of a frames top of stack
/// Get the address of a frame's top of stack
fn get_stack_top(&self) -> u64 {
self.frames[self.frame].stack.addr + self.frames[self.frame].stack.len - 1
}
Expand Down Expand Up @@ -811,6 +811,7 @@ impl<'a> EbpfVmMbuff<'a> {
} else if let Some(ref elf) = self.elf {
if let Some(new_pc) = elf.lookup_bpf_call(insn.imm as u32) {
// make BPF to BPF call

reg[ebpf::STACK_REG] =
frames
.push(&reg[ebpf::FIRST_SCRATCH_REG..ebpf::FIRST_SCRATCH_REG + ebpf::SCRATCH_REGS],
Expand Down

0 comments on commit 3afac5f

Please sign in to comment.