| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: locore.S,v 1.19 2019/07/14 09:29:21 skrll Exp $ */ | | 1 | /* $NetBSD: locore.S,v 1.20 2020/08/28 12:41:17 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 |
| @@ -32,27 +32,27 @@ | | | @@ -32,27 +32,27 @@ |
32 | */ | | 32 | */ |
33 | | | 33 | |
34 | #include "opt_cputypes.h" | | 34 | #include "opt_cputypes.h" |
35 | #include "assym.h" | | 35 | #include "assym.h" |
36 | #include <sys/syscall.h> | | 36 | #include <sys/syscall.h> |
37 | #include <sys/errno.h> | | 37 | #include <sys/errno.h> |
38 | #include <machine/asm.h> | | 38 | #include <machine/asm.h> |
39 | #include <machine/frame.h> | | 39 | #include <machine/frame.h> |
40 | #if defined(CPU_XSCALE_PXA250) || defined(CPU_XSCALE_PXA270) | | 40 | #if defined(CPU_XSCALE_PXA250) || defined(CPU_XSCALE_PXA270) |
41 | #include <arm/armreg.h> | | 41 | #include <arm/armreg.h> |
42 | #endif | | 42 | #endif |
43 | | | 43 | |
44 | | | 44 | |
45 | /* What size should this really be ? It is only used by init_arm() */ | | 45 | /* What size should this really be ? It is only used by initarm() */ |
46 | #define INIT_ARM_STACK_SIZE 2048 | | 46 | #define INIT_ARM_STACK_SIZE 2048 |
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 | ENTRY_NP(kernel_text) | | 53 | ENTRY_NP(kernel_text) |
54 | | | 54 | |
55 | ASENTRY_NP(start) | | 55 | ASENTRY_NP(start) |
56 | /* Put the processer in SVC mode */ | | 56 | /* Put the processer in SVC mode */ |
57 | mov r5, sp | | 57 | mov r5, sp |
58 | mrs r4, cpsr | | 58 | mrs r4, cpsr |