"Thomas" == Thomas De Schampheleire <[EMAIL PROTECTED]> writes:

Thomas> In my research project we are using a full system simulator in which
Thomas> OpenSolaris runs. I would like to make OpenSolaris believe that
Thomas> halting is possible by providing my own cpu_halt_cpu() function.

Thomas> If I provide such a function in a kernel module, can I then re-call
Thomas> mach_cpu_halt_idle() in order to overwrite the idle_cpu() and
Thomas> disp_enq_thread() pointers? Or will this result in panic or incorrect
Thomas> behavior?

I think this needs to be in a CPU module, but maybe you can figure out
a way to do otherwise.

Thomas> If this is not possible from a module, I would like to statically add
Thomas> this cpu_halt_cpu() to the correct file in uts/sun4u/cpu/ so it is
Thomas> seen at startup. I don't know which one this would be however. I am
Thomas> simulating a serengeti machine, but there are no serengeti-specific
Thomas> files in this directory. Shall I then simply put the code in the
Thomas> us3_common files?

Serengeti machines run UltraSPARC-III to UltraSPARC-IV+, I believe,
so some us3_*.c file is appropriate.  Of course, this would also
affect other machines running with those CPUs, but it sounds like that
is not an issue for you.
-- 
Dave Marquardt
Sun Microsystems, Inc.
Austin, TX
+1 512 401-1077 (SUN internal: x64077)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to