Re: intr_machdep.c:176:2: error: use of undeclared identifier 'interrupt_sorted'

From: Michael Butler <imb_at_protected-networks.net>
Date: Fri, 31 Aug 2018 00:21:02 -0400
On 8/29/18 7:40 PM, John Baldwin wrote:
> On 8/29/18 4:20 PM, Ian FREISLICH wrote:
>> Hi
>>
>> I see the definition of interrupt_sorted is #ifdefed out by #ifdef SMP
>> at line 84.  My system is UP <gasp> so I'm not compiling an SMP kernel.
>>
>> /usr/src/sys/x86/x86/intr_machdep.c:176:2: error: use of undeclared
>> identifier 'interrupt_sorted'; did you mean 'interrupt_sources'?
>>         interrupt_sorted = mallocarray(num_io_irqs,
>> sizeof(*interrupt_sorted),
>>         ^~~~~~~~~~~~~~~~
>>         interrupt_sources
>> /usr/src/sys/x86/x86/intr_machdep.c:83:24: note: 'interrupt_sources'
>> declared here
>> static struct intsrc **interrupt_sources;
>>                        ^
>> /usr/src/sys/x86/x86/intr_machdep.c:176:54: error: use of undeclared
>> identifier 'interrupt_sorted'; did you mean 'interrupt_sources'?
>>         interrupt_sorted = mallocarray(num_io_irqs,
>> sizeof(*interrupt_sorted),
> 
> Probably just needs #ifdef SMP around the mallocarray().  I'll test locallyon a UP kernel config.
> 

I see another problem after using Ian's workaround of moving the #ifdef
SMP; it seems I now run out of kernel stack on an i386 (Pentium-III)
machine with only 512MB of RAM:

Aug 29 23:29:19 sarah kernel: vm_thread_new: kstack allocation failed
Aug 29 23:29:26 sarah kernel: vm_thread_new: kstack allocation failed
Aug 29 23:29:30 sarah kernel: vm_thread_new: kstack allocation failed
Aug 29 23:29:38 sarah kernel: vm_thread_new: kstack allocation failed
Aug 29 23:29:38 sarah kernel: vm_thread_new: kstack allocation failed
Aug 29 23:29:40 sarah kernel: vm_thread_new: kstack allocation failed

	imb
Received on Fri Aug 31 2018 - 02:21:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC