diff options
author | Frans Kaashoek <[email protected]> | 2016-08-25 09:13:00 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2016-08-25 09:13:00 -0400 |
commit | 7894fcd21732dd2ddfbb9beca52d037a62ed11f4 (patch) | |
tree | eabcfc4f08613dcf7c35e58d9425f02c4c65224f /trap.c | |
parent | 6de6a3c952dc8786619bd052e26e6bc1c97be2e6 (diff) | |
download | xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.gz xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.bz2 xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.zip |
Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done
(Thanks to Nicolás Wolovick)
Diffstat (limited to 'trap.c')
-rw-r--r-- | trap.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -22,7 +22,7 @@ tvinit(void) for(i = 0; i < 256; i++) SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); - + initlock(&tickslock, "time"); } @@ -77,7 +77,7 @@ trap(struct trapframe *tf) cpu->id, tf->cs, tf->eip); lapiceoi(); break; - + //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ @@ -89,13 +89,13 @@ trap(struct trapframe *tf) // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " "eip 0x%x addr 0x%x--kill proc\n", - proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, + proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, rcr2()); proc->killed = 1; } // Force process exit if it has been killed and is in user space. - // (If it is still executing in the kernel, let it keep running + // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(proc && proc->killed && (tf->cs&3) == DPL_USER) exit(); |