]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 5 Apr 2010 13:59:32 +0000 (15:59 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 5 Apr 2010 13:59:32 +0000 (15:59 +0200)
ChangeLog
kern/i386/pc/startup.S

index 745bbe4238608b572436a9840e8304e1175e96a1..de222d1cbbfb22b27e23550543ab053e9382d038 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
+
 2010-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
index e78903a453ed11563ad556e9b711b6cca6976602..3742777670e73f5872a65bade913091bef8291d1 100644 (file)
@@ -1444,47 +1444,6 @@ FUNCTION(grub_console_setcursor)
        popl    %ebp
        ret
 
-/*
- * grub_getrtsecs()
- *     if a seconds value can be read, read it and return it (BCD),
- *      otherwise return 0xFF
- * BIOS call "INT 1AH Function 02H" to check whether a character is pending
- *     Call with       %ah = 0x2
- *     Return:
- *             If RT Clock can give correct values
- *                     %ch = hour (BCD)
- *                     %cl = minutes (BCD)
- *                      %dh = seconds (BCD)
- *                      %dl = daylight savings time (00h std, 01h daylight)
- *                     Carry flag = clear
- *             else
- *                     Carry flag = set
- *                         (this indicates that the clock is updating, or
- *                          that it isn't running)
- */
-FUNCTION(grub_getrtsecs)
-       pushl   %ebp
-
-       call    prot_to_real    /* enter real mode */
-       .code16
-
-       clc
-       movb    $0x2, %ah
-       int     $0x1a
-
-       DATA32  jnc     gottime
-       movb    $0xff, %dh
-
-gottime:
-       DATA32  call    real_to_prot
-       .code32
-
-       movb    %dh, %al
-
-       popl    %ebp
-       ret
-
-
 /*
  * grub_get_rtc()
  *     return the real time in ticks, of which there are about