| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: locore.S,v 1.55 2011/02/07 12:19:35 skrll Exp $ */ | | 1 | /* $NetBSD: locore.S,v 1.56 2011/12/19 10:56:59 skrll Exp $ */ |
2 | /* $OpenBSD: locore.S,v 1.158 2008/07/28 19:08:46 miod Exp $ */ | | 2 | /* $OpenBSD: locore.S,v 1.158 2008/07/28 19:08:46 miod Exp $ */ |
3 | | | 3 | |
4 | /* | | 4 | /* |
5 | * Copyright (c) 1998-2004 Michael Shalayeff | | 5 | * Copyright (c) 1998-2004 Michael Shalayeff |
6 | * All rights reserved. | | 6 | * All rights reserved. |
7 | * | | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | | 9 | * modification, are permitted provided that the following conditions |
10 | * are met: | | 10 | * are met: |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -384,27 +384,27 @@ LEAF_ENTRY_NOPROFILE(kernel_setup) | | | @@ -384,27 +384,27 @@ LEAF_ENTRY_NOPROFILE(kernel_setup) |
384 | mtctl %r0, %eiem /* disable interrupts */ | | 384 | mtctl %r0, %eiem /* disable interrupts */ |
385 | mtctl %r1, %eirr | | 385 | mtctl %r1, %eirr |
386 | | | 386 | |
387 | /* | | 387 | /* |
388 | * load address of interrupt vector table | | 388 | * load address of interrupt vector table |
389 | */ | | 389 | */ |
390 | ldil L%ivaaddr, %t2 | | 390 | ldil L%ivaaddr, %t2 |
391 | ldo R%ivaaddr(%t2), %t2 | | 391 | ldo R%ivaaddr(%t2), %t2 |
392 | mtctl %t2, %iva | | 392 | mtctl %t2, %iva |
393 | | | 393 | |
394 | /* | | 394 | /* |
395 | * set up the dp pointer so that we can do quick references off of it | | 395 | * set up the dp pointer so that we can do quick references off of it |
396 | */ | | 396 | */ |
397 | ldil L%$global$,%dp | | 397 | ldil L%$global$, %dp |
398 | ldo R%$global$(%dp), %dp | | 398 | ldo R%$global$(%dp), %dp |
399 | | | 399 | |
400 | /* | | 400 | /* |
401 | * Create a stack frame for us to call C with. Clear out the previous | | 401 | * Create a stack frame for us to call C with. Clear out the previous |
402 | * sp marker to mark that this is the first frame on the stack. | | 402 | * sp marker to mark that this is the first frame on the stack. |
403 | */ | | 403 | */ |
404 | copy %arg0, %sp | | 404 | copy %arg0, %sp |
405 | ldo 0(%arg0), %r3 | | 405 | ldo 0(%arg0), %r3 |
406 | stw,ma %r0, HPPA_FRAME_SIZE(%sp) | | 406 | stw,ma %r0, HPPA_FRAME_SIZE(%sp) |
407 | stw %r0, HPPA_FRAME_CRP(%sp) | | 407 | stw %r0, HPPA_FRAME_CRP(%sp) |
408 | stw %r0, HPPA_FRAME_PSP(%sp) | | 408 | stw %r0, HPPA_FRAME_PSP(%sp) |
409 | | | 409 | |
410 | /* | | 410 | /* |