Skip to contentSkip to conversation

mips/*/time.h

DISCUSSION Robert Millan 2 participants 3 messages Dec 4, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

In mips branch grub_cpu_idle() is provided by grub/mips/yeeloong/time.h and grub/mips/qemu-mips/time.h, but there's no grub/mips/time.h.

This breaks mipsel-emu port, which lacks this definition. Why not merge mips/yeeloong/time.h and mips/qemu-mips/time.h into mips/time.h ? Both files are identical.

Signature · 5 lines
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."
#1 lore raw
Quoted 10 lines · Robert Millan

Hi,

In mips branch grub_cpu_idle() is provided by grub/mips/yeeloong/time.h and grub/mips/qemu-mips/time.h, but there's no grub/mips/time.h.

This breaks mipsel-emu port, which lacks this definition. Why not merge mips/yeeloong/time.h and mips/qemu-mips/time.h into mips/time.h ? Both files are identical.

Both are stubs actually. Why does *-emu needs these files at all? *-emu doesn't see this type of machine info. It should just use host function for both cpu_idle and get_rtc

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
Quoted 6 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 5 lines · Robert Millan

Hi,

In mips branch grub_cpu_idle() is provided by grub/mips/yeeloong/time.h and grub/mips/qemu-mips/time.h, but there's no grub/mips/time.h.

Quoted 8 lines
Quoted 5 lines

This breaks mipsel-emu port, which lacks this definition. Why not merge mips/yeeloong/time.h and mips/qemu-mips/time.h into mips/time.h ? Both files are identical.

Both are stubs actually. Why does *-emu needs these files at all? *-emu doesn't see this type of machine info. It should just use host function for both cpu_idle and get_rtc

grub_cpu_idle is implemented as an inline stub, which resides in time.h.

Signature · 5 lines
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."