summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/arch/i386/include/librm.h3
-rw-r--r--src/arch/i386/transitions/librm.S3
-rw-r--r--src/arch/i386/transitions/librm_mgmt.c48
3 files changed, 0 insertions, 54 deletions
diff --git a/src/arch/i386/include/librm.h b/src/arch/i386/include/librm.h
index e60bc69ec..32dceed67 100644
--- a/src/arch/i386/include/librm.h
+++ b/src/arch/i386/include/librm.h
@@ -60,9 +60,6 @@ extern char *text16;
( ( ( void * ) &(variable) ) - ( ( void * ) text16 ) ) ) )
/* Variables in librm.S, present in the normal data segment */
-extern uint16_t rm_sp;
-extern uint16_t rm_ss;
-extern uint32_t pm_esp;
extern uint16_t __data16 ( rm_cs );
#define rm_cs __use_data16 ( rm_cs )
extern uint16_t __text16 ( rm_ds );
diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S
index 2072ee3e9..56b9f363d 100644
--- a/src/arch/i386/transitions/librm.S
+++ b/src/arch/i386/transitions/librm.S
@@ -528,11 +528,8 @@ rc_function: .word 0, 0
****************************************************************************
*/
.section ".data"
- .globl rm_sp
rm_sp: .word 0
- .globl rm_ss
rm_ss: .word 0
- .globl pm_esp
pm_esp: .long _estack
/****************************************************************************
diff --git a/src/arch/i386/transitions/librm_mgmt.c b/src/arch/i386/transitions/librm_mgmt.c
deleted file mode 100644
index d0ff4ea59..000000000
--- a/src/arch/i386/transitions/librm_mgmt.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * librm: a library for interfacing to real-mode code
- *
- * Michael Brown <mbrown@fensystems.co.uk>
- *
- */
-
-#ifdef KEEP_IT_REAL
-/* Build a null object under -DKEEP_IT_REAL */
-#else
-
-#include <stdint.h>
-#include <librm.h>
-
-/*
- * This file provides functions for managing librm.
- *
- */
-
-/*
- * Allocate space on the real-mode stack and copy data there.
- *
- */
-uint16_t copy_to_rm_stack ( void *data, size_t size ) {
-#ifdef DEBUG_LIBRM
- if ( rm_sp <= size ) {
- printf ( "librm: out of space in RM stack\n" );
- lockup();
- }
-#endif
- rm_sp -= size;
- copy_to_real ( rm_ss, rm_sp, data, size );
- return rm_sp;
-};
-
-/*
- * Deallocate space on the real-mode stack, optionally copying back
- * data.
- *
- */
-void remove_from_rm_stack ( void *data, size_t size ) {
- if ( data ) {
- copy_from_real ( data, rm_ss, rm_sp, size );
- }
- rm_sp += size;
-};
-
-#endif /* KEEP_IT_REAL */