summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/prefix/pxeprefix.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/prefix/pxeprefix.S')
-rw-r--r--src/arch/i386/prefix/pxeprefix.S106
1 files changed, 0 insertions, 106 deletions
diff --git a/src/arch/i386/prefix/pxeprefix.S b/src/arch/i386/prefix/pxeprefix.S
index 31b2102f6..6a8aeb3a0 100644
--- a/src/arch/i386/prefix/pxeprefix.S
+++ b/src/arch/i386/prefix/pxeprefix.S
@@ -321,112 +321,6 @@ finished:
jmp run_etherboot
/*****************************************************************************
- * Subroutine: print character (with LF -> LF,CR translation)
- *
- * Parameters:
- * %al : character to print
- * Returns:
- * Nothing
- *****************************************************************************
- */
-print_character:
- /* Preserve registers */
- pushw %ax
- pushw %bx
- pushw %bp
- /* Print character */
- movw $0x0007, %bx /* page 0, attribute 7 (normal) */
- movb $0x0e, %ah /* write char, tty mode */
- cmpb $0x0a, %al /* '\n'? */
- jne 1f
- int $0x10
- movb $0x0d, %al
-1: int $0x10
- /* Restore registers and return */
- popw %bp
- popw %bx
- popw %ax
- ret
-
-/*****************************************************************************
- * Subroutine: print a NUL-terminated string
- *
- * Parameters:
- * %ds:%si : string to print
- * Returns:
- * Nothing
- *****************************************************************************
- */
-print_message:
- /* Preserve registers */
- pushw %ax
- pushw %si
- /* Print string */
-1: lodsb
- testb %al, %al
- je 2f
- call print_character
- jmp 1b
-2: /* Restore registers and return */
- popw %si
- popw %ax
- ret
-
-/*****************************************************************************
- * Subroutine: print hex digit
- *
- * Parameters:
- * %al (low nibble) : digit to print
- * Returns:
- * Nothing
- *****************************************************************************
- */
-print_hex_nibble:
- /* Preserve registers */
- pushw %ax
- /* Print digit (technique by Norbert Juffa <norbert.juffa@amd.com> */
- andb $0x0f, %al
- cmpb $10, %al
- sbbb $0x69, %al
- das
- call print_character
- /* Restore registers and return */
- popw %ax
- ret
-
-/*****************************************************************************
- * Subroutine: print hex byte
- *
- * Parameters:
- * %al : byte to print
- * Returns:
- * Nothing
- *****************************************************************************
- */
-print_hex_byte:
- rorb $4, %al
- call print_hex_nibble
- rorb $4, %al
- call print_hex_nibble
- ret
-
-/*****************************************************************************
- * Subroutine: print hex word
- *
- * Parameters:
- * %ax : word to print
- * Returns:
- * Nothing
- *****************************************************************************
- */
-print_hex_word:
- xchgb %al, %ah
- call print_hex_byte
- xchgb %al, %ah
- call print_hex_byte
- ret
-
-/*****************************************************************************
* Subroutine: print segment:offset address
*
* Parameters: