[RFC] Debugging with a HW probe.

Jimi Xenidis jimix at watson.ibm.com
Wed Aug 9 02:13:35 EST 2006


On Aug 8, 2006, at 12:48 AM, Paul Mackerras wrote:

> Jimi Xenidis writes:
>
>> +static noinline void xmon_hw_probe(void)
>> +{
>> +	if (!xmon_hw_probe_enabled)
>> +		return;
>> +	ATTN();
>> +}
>
> I can't see how we can get to call this routine with
> xmon_hw_probe_enabled equal to 0...  What am I missing?
>

@@ -834,6 +904,11 @@ #ifdef CONFIG_PPC_STD_MMU
  			dump_segments();
  			break;
  #endif
+#ifdef CONFIG_XMON_ATTN
+		case 'A':
+			xmon_hw_probe();
+			break;
+#endif
  		default:
  			printf("Unrecognized command: ");
  		        do {

The static is used to avoid the illegal instruction trap that will/ 
should occur if we execute this instruction and the hid bit is not set.

-JX





More information about the Linuxppc-dev mailing list