Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/dboot/dboot_xen.s
+++ new/usr/src/uts/i86pc/dboot/dboot_xen.s
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 -#pragma ident "%Z%%M% %I% %E% SMI"
28 -
29 27 #include <sys/asm_linkage.h>
30 28 #include <sys/asm_misc.h>
31 29 #include "dboot_xboot.h"
32 30
33 -#if defined(__lint)
34 -
35 -#else /* __lint */
36 -
37 31 #if defined(__amd64)
38 32
39 33 ENTRY_NP(_start)
40 34 /*
41 35 * At entry we are passed a (start_info_t *) in %rsi.
42 36 */
43 37 movq %rsi, xen_info(%rip)
44 38
45 39 /*
46 40 * make sure we have sane processor state
47 41 */
48 42 xorw %ax, %ax
49 43 movw %ax, %fs
50 44 movw %ax, %gs
51 45 pushq $0
52 46 popfq
53 47 pushq $0
54 48
55 49 /*
56 50 * go off and unpack the kernel bits, adjust page tables, etc.
57 51 */
58 52 call startup_kernel
59 53
60 54 /*
61 55 * we can only setup a stack after startup_kernel().
62 56 * Its in the lower part of memroy.
63 57 */
64 58 leaq stack_space(%rip), %rsp
65 59 addq $STACK_SIZE, %rsp
66 60 andl $0xfffffff0, %esp
67 61
68 62 pushq $0x0 /* push a dead-end frame */
69 63 pushq $0x0
70 64 movq %rsp, %rbp
71 65
72 66 /*
73 67 * when we get back, load the kernel entry point and jump to it
74 68 * The address of the xboot_info is the kernel's only argument.
75 69 */
76 70 movl entry_addr_low, %esi
77 71 movq $0xffffffff00000000,%rdx
78 72 orq %rdx, %rsi /* set upper bits of entry addr */
79 73
80 74 movl bi, %edi
81 75 call *%rsi
82 76 SET_SIZE(_start)
83 77
84 78 #elif defined(__i386)
85 79
86 80 ENTRY_NP(_start)
87 81 /*
88 82 * At entry we are passed a (start_info_t *) in %esi.
89 83 */
90 84 movl %esi, xen_info
91 85
92 86 /*
93 87 * make sure we have sane processor state
94 88 */
95 89 cld
96 90 xorw %ax, %ax
97 91 movw %ax, %fs
98 92 movw %ax, %gs
99 93
100 94
101 95 /*
102 96 * go off and unpack the kernel bits, adjust page tables, etc.
103 97 */
104 98 call startup_kernel
105 99
106 100 /*
107 101 * we can only setup a stack after startup_kernel().
108 102 */
109 103 movl $stack_space, %esp /* load my stack pointer */
110 104 addl $STACK_SIZE, %esp
111 105
112 106 pushl $0x0 /* push a dead-end frame */
113 107 pushl $0x0
114 108 movl %esp, %ebp
115 109
116 110 /*
117 111 * when we get back, load the kernel entry point and jump to it
↓ open down ↓ |
71 lines elided |
↑ open up ↑ |
118 112 * The address of the xboot_info is the kernel's only argument.
119 113 */
120 114 movl entry_addr_low, %esi
121 115 movl bi, %eax
122 116 pushl %eax
123 117 call *%esi
124 118 SET_SIZE(_start)
125 119
126 120 #endif /* __i386 */
127 121
128 -#endif /* __lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX