Porting Adeos-Ipipe on AVR32 (NGW 100).
Hello,
We started to port Adeos for the IRQs part.
Simple question: Why the function raw_irqs_disabled_flags(flags) is the same with or without ipipe ? (as we saw in some arch).
(in the case with ipipe)
Why
not use __ipipe_test_root() -in the same way as the function __raw_local_save_flags()- to write the new function raw_irqs_disabled_flags(flags)?
Regards
Adrien Chiron & Vincent Vanbesien
Quoted 7 lines · A C
Hello,
We started to port Adeos for the IRQs part.
Simple question: Why the function
raw_irqs_disabled_flags(flags)is the same with or without ipipe ? (as we saw in some arch).
Because the pipeline code must guarantee that, for all standard linux IRQ state accessors/modifiers (e.g. local_irq_save/restore(), raw_irqs_disabled_flags()) the same values are used to assert/test the interrupt on/off states (e.g. MSR_EE, X86_EFLAGS_IF and so on), in the virtualized IRQ flags, than the real IRQ flags linux uses when the pipeline is disabled, for any given arch.
e.g. on x86, albeit ugly, it must be allowed to open-code:
raw_local_save_flags(flags);
if (flags & X86_EFLAGS_IF)
interrupts_are_enabled();
even if the pipeline is enabled.
Quoted 4 lines
(in the case with ipipe)
Why not use__ipipe_test_root()-in the same way as the function __raw_local_save_flags()- to write the new functionraw_irqs_disabled_flags(flags)?
Because this would break the above rule, since __ipipe_test_root() returns 0/1.
Quoted 9 lines
Regards
Adrien Chiron & Vincent Vanbesien
_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main
Signature · 1 line
Philippe.