| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: locore.S,v 1.41 2020/07/08 10:18:00 skrll Exp $ */ | | 1 | /* $NetBSD: locore.S,v 1.42 2020/08/28 12:31:44 skrll Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 1994-1997 Mark Brinicombe | | 4 | * Copyright (C) 1994-1997 Mark Brinicombe |
5 | * Copyright (C) 1994 Brini | | 5 | * Copyright (C) 1994 Brini |
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 |
| @@ -30,30 +30,30 @@ | | | @@ -30,30 +30,30 @@ |
30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | | 30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | 31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
32 | */ | | 32 | */ |
33 | | | 33 | |
34 | #include "opt_arm_debug.h" | | 34 | #include "opt_arm_debug.h" |
35 | | | 35 | |
36 | #include "assym.h" | | 36 | #include "assym.h" |
37 | #include <sys/cdefs.h> | | 37 | #include <sys/cdefs.h> |
38 | #include <sys/syscall.h> | | 38 | #include <sys/syscall.h> |
39 | #include <sys/errno.h> | | 39 | #include <sys/errno.h> |
40 | #include <arm/asm.h> | | 40 | #include <arm/asm.h> |
41 | #include <arm/locore.h> | | 41 | #include <arm/locore.h> |
42 | | | 42 | |
43 | /* What size should this really be ? It is only used by init_arm() */ | | 43 | /* What size should this really be ? It is only used by initarm() */ |
44 | #define INIT_ARM_STACK_SIZE 2048 | | 44 | #define INIT_ARM_STACK_SIZE 2048 |
45 | | | 45 | |
46 | RCSID("$NetBSD: locore.S,v 1.41 2020/07/08 10:18:00 skrll Exp $") | | 46 | RCSID("$NetBSD: locore.S,v 1.42 2020/08/28 12:31:44 skrll Exp $") |
47 | | | 47 | |
48 | /* | | 48 | /* |
49 | * This is for kvm_mkdb, and should be the address of the beginning | | 49 | * This is for kvm_mkdb, and should be the address of the beginning |
50 | * of the kernel text segment (not necessarily the same as kernbase). | | 50 | * of the kernel text segment (not necessarily the same as kernbase). |
51 | */ | | 51 | */ |
52 | | | 52 | |
53 | .text | | 53 | .text |
54 | .align 0 | | 54 | .align 0 |
55 | | | 55 | |
56 | ENTRY_NP(kernel_text) | | 56 | ENTRY_NP(kernel_text) |
57 | | | 57 | |
58 | ASENTRY_NP(start) | | 58 | ASENTRY_NP(start) |
59 | mrs r1, cpsr /* fetch CPSR value */ | | 59 | mrs r1, cpsr /* fetch CPSR value */ |