Date: Sat, 05 May 2007 16:49:17 +0100 From: Bruce M Simpson <bms@incunabulum.net> To: freebsd-mips@freebsd.org Subject: [PATCH] Teach gxemul yamon about clock discovery Message-ID: <463CA77D.20801@incunabulum.net>
next in thread | raw e-mail | index | archive | help
Hi, 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: http://people.freebsd.org/~bms/dump/gxemul-clockfreq-yamon.diff 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. Regards, BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?463CA77D.20801>