* kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
This commit is contained in:
parent
064cb524ec
commit
2622c3ffb0
2 changed files with 4 additions and 41 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue