Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b56481c in mainline


Ignore:
Timestamp:
2012-03-15T20:53:58Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
41552913
Parents:
324819c
Message:

amdm37x,irc: Masked means irq won't fire…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/amdm37x_irc/amdm37x_irc.h

    r324819c rb56481c  
    165165
    166166        /* Disable all interrupts */
    167         regs->interrupts[0].mir_clear = 0xffffffff;
    168         regs->interrupts[1].mir_clear = 0xffffffff;
    169         regs->interrupts[2].mir_clear = 0xffffffff;
     167        regs->interrupts[0].mir_set = 0xffffffff;
     168        regs->interrupts[1].mir_set = 0xffffffff;
     169        regs->interrupts[2].mir_set = 0xffffffff;
    170170}
    171171
     
    186186
    187187static inline void amdm37x_irc_enable(amdm37x_irc_regs_t *regs, unsigned inum)
     188{
     189        ASSERT(inum < AMDM37x_IRC_IRQ_COUNT);
     190        const unsigned set = inum / 32;
     191        const unsigned pos = inum % 32;
     192        regs->interrupts[set].mir_clear = (1 << pos);
     193}
     194
     195static inline void amdm37x_irc_disable(amdm37x_irc_regs_t *regs, unsigned inum)
    188196{
    189197        ASSERT(inum < AMDM37x_IRC_IRQ_COUNT);
     
    193201}
    194202
    195 static inline void amdm37x_irc_disable(amdm37x_irc_regs_t *regs, unsigned inum)
    196 {
    197         ASSERT(inum < AMDM37x_IRC_IRQ_COUNT);
    198         const unsigned set = inum / 32;
    199         const unsigned pos = inum % 32;
    200         regs->interrupts[set].mir_clear = (1 << pos);
    201 }
    202 
    203203#endif
    204204
Note: See TracChangeset for help on using the changeset viewer.