[OSy] assignment 1 - compilation error

Artur Finger fingerartur at gmail.com
Tue Nov 8 14:39:41 CET 2016


Thanks a lot

On 8 November 2016 at 14:06, Adam Hornáček <ado.hornacek at gmail.com> wrote:

> Hi,
>
> this include resolved the issues for me:
>
> #include <include/shared.h>
> #include <include/c.h>
>
> Regards,
> Adam
>
> On 8 Nov 2016, at 14:02, Artur Finger <fingerartur at gmail.com> wrote:
>
> I am using @uniform over putty. After i download kalisto, unzip it, remove
> falloc.obj, create falloc.c (with trivial implementations of falloc.h
> functions) and run make i get this error:
>
> In file included from ./mm/falloc.h:19:0,
>>                  from mm/falloc.c:5:
>> ./include/c.h: In function 'query_and_disable_interrupts':
>> ./include/c.h:290:30: error: 'CP0_STATUS_IE_MASK' undeclared (first use
>> in this function)
>>   write_cp0_status (status & ~CP0_STATUS_IE_MASK);
>>                               ^
>> ./include/c.h:246:10: note: in definition of macro 'write_cp0_register'
>>    : "r" (value) \
>>           ^~~~~
>> ./include/c.h:290:2: note: in expansion of macro 'write_cp0_status'
>>   write_cp0_status (status & ~CP0_STATUS_IE_MASK);
>>   ^~~~~~~~~~~~~~~~
>> ./include/c.h:290:30: note: each undeclared identifier is reported only
>> once for each function it appears in
>>   write_cp0_status (status & ~CP0_STATUS_IE_MASK);
>>                               ^
>> ./include/c.h:246:10: note: in definition of macro 'write_cp0_register'
>>    : "r" (value) \
>>           ^~~~~
>> ./include/c.h:290:2: note: in expansion of macro 'write_cp0_status'
>>   write_cp0_status (status & ~CP0_STATUS_IE_MASK);
>>   ^~~~~~~~~~~~~~~~
>> ./include/c.h: In function 'disable_interrupts':
>> ./include/c.h:305:42: error: 'CP0_STATUS_IE_MASK' undeclared (first use
>> in this function)
>>   write_cp0_status (read_cp0_status () & ~CP0_STATUS_IE_MASK);
>>                                           ^
>> ./include/c.h:246:10: note: in definition of macro 'write_cp0_register'
>>    : "r" (value) \
>>           ^~~~~
>> ./include/c.h:305:2: note: in expansion of macro 'write_cp0_status'
>>   write_cp0_status (read_cp0_status () & ~CP0_STATUS_IE_MASK);
>>   ^~~~~~~~~~~~~~~~
>> ./include/c.h: In function 'conditionally_enable_interrupts':
>> ./include/c.h:328:42: error: 'CP0_STATUS_IE_MASK' undeclared (first use
>> in this function)
>>    write_cp0_status (read_cp0_status () | CP0_STATUS_IE_MASK);
>>                                           ^
>> ./include/c.h:246:10: note: in definition of macro 'write_cp0_register'
>>    : "r" (value) \
>>           ^~~~~
>> ./include/c.h:328:3: note: in expansion of macro 'write_cp0_status'
>>    write_cp0_status (read_cp0_status () | CP0_STATUS_IE_MASK);
>>    ^~~~~~~~~~~~~~~~
>> ./include/c.h: In function 'enable_interrupts':
>> ./include/c.h:342:41: error: 'CP0_STATUS_IE_MASK' undeclared (first use
>> in this function)
>>   write_cp0_status (read_cp0_status () | CP0_STATUS_IE_MASK);
>>                                          ^
>> ./include/c.h:246:10: note: in definition of macro 'write_cp0_register'
>>    : "r" (value) \
>>           ^~~~~
>> ./include/c.h:342:2: note: in expansion of macro 'write_cp0_status'
>>   write_cp0_status (read_cp0_status () | CP0_STATUS_IE_MASK);
>>   ^~~~~~~~~~~~~~~~
>> Makefile:186: recipe for target 'mm/falloc.o' failed
>> make[1]: *** [mm/falloc.o] Error 1
>> make[1]: Leaving directory '/home/accounts/finger/kal/kernel'
>> Makefile:25: recipe for target 'kernel' failed
>> make: *** [kernel] Error 2
>>
> What is going on?
>
> Have a nice day,
> Artur Finger
> _______________________________________________
> OSy mailing list
> OSy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/osy
>
>
>
> _______________________________________________
> OSy mailing list
> OSy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/osy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20161108/bb01d5ca/attachment.html>


More information about the NSWI004 mailing list