PERFORCE change 135838 for review
Randall R. Stewart
rrs at FreeBSD.org
Wed Feb 20 21:57:40 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=135838
Change 135838 by rrs at rrs-mips2-jnpr on 2008/02/20 21:56:49
Add tick timer to run octeon LED panel every 1 second.
Probably need to take this back out after we are more stable,
for now it gives us a visual feedback that things are working.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/tick.c#4 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/tick.c#4 (text+ko) ====
@@ -191,6 +191,11 @@
return (0);
}
+#ifdef TARGET_OCTEON
+int wheel_run = 0;
+#define OCTEON_TICK_COUNT 100
+void octeon_led_run_wheel(void);
+#endif
/*
* Device section of file below
*/
@@ -213,6 +218,14 @@
usermode = tf->sr & MIPS_SR_KSU_USER;
pc = tf->pc;
+#ifdef TARGET_OCTEON
+ /* Run the FreeBSD display once every N ticks */
+ wheel_run++;
+ if(wheel_run >= OCTEON_TICK_COUNT) {
+ wheel_run = 0;
+ octeon_led_run_wheel();
+ }
+#endif
if (clocks_running) {
hardclock(usermode, pc);
}
More information about the p4-projects
mailing list