[PATCH] Teach gxemul yamon about clock discovery
Bruce M Simpson
bms at incunabulum.net
Sat May 5 15:49:19 UTC 2007
NetBSD has code which calibrates their DELAY() using the on-chip counter
(as our code tries to do). However the YAMON monitor has a SYSCON read
object which exports the board clock info via their API.
This patch teaches the GXemul YAMON prom emulation to export the
configured CPU clock in the virtual machine to the host OS:
I tested this with NetBSD-3.1 for evbmips malta.
I previously hacked a patch which did this via environment variables. A
similar patch may be necessary for CFE or PMON firmware.
More information about the freebsd-mips