Fix too-long lines
This commit is contained in:
		
							parent
							
								
									04be8fb232
								
							
						
					
					
						commit
						7472b2b451
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								proc.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								proc.c
									
										
									
									
									
								
							|  | @ -120,7 +120,8 @@ userinit(void) | ||||||
|     panic("userinit: out of memory?"); |     panic("userinit: out of memory?"); | ||||||
|   if (!allocuvm(p->pgdir, 0x0, (int)_binary_initcode_size)) |   if (!allocuvm(p->pgdir, 0x0, (int)_binary_initcode_size)) | ||||||
|     panic("userinit: out of memory?"); |     panic("userinit: out of memory?"); | ||||||
|   inituvm(p->pgdir, 0x0, _binary_initcode_start, (int)_binary_initcode_size); |   inituvm(p->pgdir, 0x0, _binary_initcode_start, | ||||||
|  |           (int)_binary_initcode_size); | ||||||
|   p->sz = PGROUNDUP((int)_binary_initcode_size); |   p->sz = PGROUNDUP((int)_binary_initcode_size); | ||||||
|   memset(p->tf, 0, sizeof(*p->tf)); |   memset(p->tf, 0, sizeof(*p->tf)); | ||||||
|   p->tf->cs = (SEG_UCODE << 3) | DPL_USER; |   p->tf->cs = (SEG_UCODE << 3) | DPL_USER; | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								trap.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								trap.c
									
										
									
									
									
								
							|  | @ -83,7 +83,8 @@ trap(struct trapframe *tf) | ||||||
|       panic("trap"); |       panic("trap"); | ||||||
|     } |     } | ||||||
|     // In user space, assume process misbehaved.
 |     // 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", |     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()); | 	    rcr2()); | ||||||
|     proc->killed = 1; |     proc->killed = 1; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Austin Clements
						Austin Clements