Subject: Re: interrupt_reg variable
To: None <port-macppc@netbsd.org>
From: Andy <andy@softbook.com>
List: port-macppc
Date: 07/06/2000 18:13:37
hmm, and the linker is happy with the two same name/type variable
declarations? Neither of them is declared extern..
Andy

>On Thu, 29 Jun 2000, Andy wrote:
>
>> There are 2 global variables called interrupt_reg that are declared in both
>> macppc/autoconf.c and macppc/extintr.c
>> The one in autoconf.c is initialized ( interrupt_reg = mapiodev(...)
>> But the one in extintr.c is not initialized but used ( in macros
>> INT_STATE_REG, etc)
>>
>> Where is the interrupt_reg in extintr.c initialized ?
>
>If they really are globals, then they are the same thing. Thus it is
>initialized in autoconf.c. :-)
>
>Take care,
>
>Bill