Sfoglia il codice sorgente

rm_ss, rm_sp, and pm_esp don't need to be accessed from anywhere

outside of librm.S.
tags/v0.9.3
Michael Brown 17 anni fa
parent
commit
0ed066bc50

+ 0
- 3
src/arch/i386/include/librm.h Vedi File

@@ -60,9 +60,6 @@ extern char *text16;
60 60
 	      ( ( ( void * ) &(variable) ) - ( ( void * ) text16 ) ) ) )
61 61
 
62 62
 /* Variables in librm.S, present in the normal data segment */
63
-extern uint16_t rm_sp;
64
-extern uint16_t rm_ss;
65
-extern uint32_t pm_esp;
66 63
 extern uint16_t __data16 ( rm_cs );
67 64
 #define rm_cs __use_data16 ( rm_cs )
68 65
 extern uint16_t __text16 ( rm_ds );

+ 0
- 3
src/arch/i386/transitions/librm.S Vedi File

@@ -528,11 +528,8 @@ rc_function:	.word 0, 0
528 528
  ****************************************************************************
529 529
  */
530 530
 	.section ".data"
531
-	.globl rm_sp
532 531
 rm_sp:	.word 0
533
-	.globl rm_ss
534 532
 rm_ss:	.word 0
535
-	.globl pm_esp
536 533
 pm_esp:	.long _estack
537 534
 
538 535
 /****************************************************************************

+ 0
- 48
src/arch/i386/transitions/librm_mgmt.c Vedi File

@@ -1,48 +0,0 @@
1
-/*
2
- * librm: a library for interfacing to real-mode code
3
- *
4
- * Michael Brown <mbrown@fensystems.co.uk>
5
- *
6
- */
7
-
8
-#ifdef KEEP_IT_REAL
9
-/* Build a null object under -DKEEP_IT_REAL */
10
-#else
11
-
12
-#include <stdint.h>
13
-#include <librm.h>
14
-
15
-/*
16
- * This file provides functions for managing librm.
17
- *
18
- */
19
-
20
-/*
21
- * Allocate space on the real-mode stack and copy data there.
22
- *
23
- */
24
-uint16_t copy_to_rm_stack ( void *data, size_t size ) {
25
-#ifdef DEBUG_LIBRM
26
-	if ( rm_sp <= size ) {
27
-		printf ( "librm: out of space in RM stack\n" );
28
-		lockup();
29
-	}
30
-#endif
31
-	rm_sp -= size;
32
-	copy_to_real ( rm_ss, rm_sp, data, size );
33
-	return rm_sp;
34
-};
35
-
36
-/*
37
- * Deallocate space on the real-mode stack, optionally copying back
38
- * data.
39
- *
40
- */
41
-void remove_from_rm_stack ( void *data, size_t size ) {
42
-	if ( data ) {
43
-		copy_from_real ( data, rm_ss, rm_sp, size );
44
-	}
45
-	rm_sp += size;
46
-};
47
-
48
-#endif /* KEEP_IT_REAL */

Loading…
Annulla
Salva