Changeset 402fc8bf in mainline
- Timestamp:
- 2005-12-10T11:32:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 208189f
- Parents:
- aace6624
- Location:
- generic/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
raace6624 r402fc8bf 150 150 link_t *cur; 151 151 152 ipl = interrupts_disable();153 152 spinlock_lock(&cmd_lock); 154 153 … … 164 163 /* The command is already there. */ 165 164 spinlock_unlock(&cmd_lock); 166 interrupts_restore(ipl);167 165 return 0; 168 166 } … … 182 180 spinlock_unlock(&cmd->lock); 183 181 spinlock_unlock(&cmd_lock); 184 interrupts_restore(ipl);185 182 return 0; 186 183 } … … 196 193 197 194 spinlock_unlock(&cmd_lock); 198 interrupts_restore(ipl);199 195 return 1; 200 196 } … … 247 243 } 248 244 249 ipl = interrupts_disable();250 245 spinlock_lock(&cmd_lock); 251 246 … … 269 264 /* Unknown command. */ 270 265 printf("Unknown command.\n"); 271 interrupts_restore(ipl);272 266 return NULL; 273 267 } … … 288 282 printf("Too few arguments.\n"); 289 283 spinlock_unlock(&cmd->lock); 290 interrupts_restore(ipl);291 284 return NULL; 292 285 } … … 310 303 printf("Too many arguments.\n"); 311 304 spinlock_unlock(&cmd->lock); 312 interrupts_restore(ipl);313 305 return NULL; 314 306 } 315 307 316 308 spinlock_unlock(&cmd->lock); 317 interrupts_restore(ipl);318 309 return cmd; 319 310 } … … 369 360 ipl_t ipl; 370 361 371 ipl = interrupts_disable();372 362 spinlock_lock(&cmd_lock); 373 363 … … 384 374 385 375 spinlock_unlock(&cmd_lock); 386 interrupts_restore(ipl);387 376 388 377 return 1; … … 400 389 ipl_t ipl; 401 390 402 ipl = interrupts_disable();403 391 spinlock_lock(&cmd_lock); 404 392 … … 421 409 422 410 spinlock_unlock(&cmd_lock); 423 interrupts_restore(ipl);424 411 425 412 return 1; -
generic/src/interrupt/interrupt.c
raace6624 r402fc8bf 100 100 if (!((i+1) % 20)) { 101 101 printf("Press any key to continue."); 102 spinlock_unlock(&exctbl_lock); 102 103 getc(stdin); 104 spinlock_lock(&exctbl_lock); 103 105 printf("\n"); 104 106 }
Note:
See TracChangeset
for help on using the changeset viewer.