Skip to content

Commit

Permalink
Delete accidental printks
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Oct 10, 2020
1 parent 3fee07f commit b57311c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion jit/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ static int cpu_single_step(struct cpu_state *cpu, struct tlb *tlb) {

int cpu_run_to_interrupt(struct cpu_state *cpu, struct tlb *tlb) {
read_wrlock(&cpu->mem->lock);
printk("%d cpu run with mem %p %d, tlb->mem %p %d\n", current->pid, cpu->mem, cpu->mem->changes, tlb->mem, tlb->mem_changes);
tlb_refresh(tlb, cpu->mem);
int interrupt = (cpu->tf ? cpu_single_step : cpu_step_to_interrupt)(cpu, tlb);
cpu->trapno = interrupt;
Expand Down
2 changes: 0 additions & 2 deletions kernel/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,8 @@ static int elf_exec(struct fd *fd, const char *file, struct exec_args argv, stru
// from this point on, if any error occurs the process will have to be
// killed before it even starts. please don't be too sad about it, it's
// just a process.
struct mm *old_mm = current->mm;
mm_release(current->mm);
task_set_mm(current, mm_new());
printk("%d replacing %p with %p\n", current->pid, &old_mm->mem, &current->mm->mem);
write_wrlock(&current->mem->lock);

current->mm->exefile = fd_retain(fd);
Expand Down

0 comments on commit b57311c

Please sign in to comment.