grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] New command checktime


From: Robert Millan
Subject: Re: [PATCH] New command checktime
Date: Wed, 6 Aug 2008 13:35:30 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Aug 06, 2008 at 07:02:46PM +0800, Bean wrote:
> if checktime * * * 3-5 *; then
>   background_image /spring.png
> fi
> 
> if checktime * * * 6-8 *; then
>   background_image /summer.png
> fi
> 
> if checktime * * * 9-11 *; then
>   background_image /fall.png
> fi
> 
> if checktime * * * 1-2,12 *; then
>   background_image /winter.png
> fi

Nifty :-)

> +FUNCTION(grub_get_datetime)
> +     pushl   %ebp
> +     pushl   %ebx
> +
> +     pushl   %eax
> +     pushl   %edx
> +
> +     call    prot_to_real
> +     .code16
> +
> +     movb    $2, %ah
> +     clc
> +     int     $0x1a

Can we make this portable by accessing 0x70 / 0x71 I/O ports instead?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]