Selaa lähdekoodia

Use librm_arch_initialise for librm, arch_initialise for others.

tags/v0.9.3
Michael Brown 19 vuotta sitten
vanhempi
commit
997b51c1e6
1 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 7
    4
      src/arch/i386/core/setup.S

+ 7
- 4
src/arch/i386/core/setup.S Näytä tiedosto

39
 #define ENTER_FROM_EXTERNAL call ext_to_kir
39
 #define ENTER_FROM_EXTERNAL call ext_to_kir
40
 #define RETURN_TO_EXTERNAL call kir_to_ext
40
 #define RETURN_TO_EXTERNAL call kir_to_ext
41
 #define ENTRY_POINT kir_call
41
 #define ENTRY_POINT kir_call
42
+#define ENTRY_POINT_REGISTER di	 
43
+#define INIT_FUNC arch_initialise
42
 
44
 
43
 #else /* KEEP_IT_REAL */
45
 #else /* KEEP_IT_REAL */
44
 
46
 
50
 	call prot_to_real ; \
52
 	call prot_to_real ; \
51
 	.code16
53
 	.code16
52
 #define ENTRY_POINT _prot_call /* _prot_call = OFFSET ( prot_call ) in librm */
54
 #define ENTRY_POINT _prot_call /* _prot_call = OFFSET ( prot_call ) in librm */
55
+#define ENTRY_POINT_REGISTER di	 
56
+#define INIT_FUNC librm_arch_initialise
53
 
57
 
54
 #endif /* KEEP_IT_REAL */
58
 #endif /* KEEP_IT_REAL */
55
 	
59
 	
56
-#define ENTRY_POINT_REGISTER di
57
-	 
58
 	.section ".text16"
60
 	.section ".text16"
59
 	.code16
61
 	.code16
60
 	.globl setup16
62
 	.globl setup16
76
 #define RETURN_TO_EXTERNAL call int_to_ext
78
 #define RETURN_TO_EXTERNAL call int_to_ext
77
 #define ENTRY_POINT int_call
79
 #define ENTRY_POINT int_call
78
 #define ENTRY_POINT_REGISTER edi
80
 #define ENTRY_POINT_REGISTER edi
79
-	
81
+#define INIT_FUNC arch_initialise
82
+		
80
 	.section ".text"
83
 	.section ".text"
81
 	.code32
84
 	.code32
82
 	.globl setup
85
 	.globl setup
145
 	 * subsequent calls.  librm will use this facility, since
148
 	 * subsequent calls.  librm will use this facility, since
146
 	 * arch_initialise() causes librm to be relocated.
149
 	 * arch_initialise() causes librm to be relocated.
147
 	 */
150
 	 */
148
-	pushl	$arch_initialise
151
+	pushl	$INIT_FUNC
149
 	push	%cs		/* lcall %es:[x]di == %cs:[x]di */
152
 	push	%cs		/* lcall %es:[x]di == %cs:[x]di */
150
 	call	*%ENTRY_POINT_REGISTER
153
 	call	*%ENTRY_POINT_REGISTER
151
 	popl	%ebp /* discard */
154
 	popl	%ebp /* discard */

Loading…
Peruuta
Tallenna