Changeset 63e27ef in mainline for kernel/genarch/include


Ignore:
Timestamp:
2017-06-19T21:47:42Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deacc58d
Parents:
7354b5e
Message:

ASSERT → assert

Location:
kernel/genarch/include/genarch/drivers
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/drivers/amdm37x/gpt.h

    r7354b5e r63e27ef  
    3737#define KERN_AMDM37x_GPT_H_
    3838
     39#include <assert.h>
    3940#include <typedefs.h>
    4041#include <mm/km.h>
     
    211212        km_unmap((uintptr_t)clksel, 4);
    212213
    213         ASSERT(timer);
     214        assert(timer);
    214215        /* Map control register */
    215216        timer->regs = (void*) km_map(ioregs, iosize, PAGE_NOT_CACHEABLE);
     
    247248static inline void amdm37x_gpt_timer_ticks_start(amdm37x_gpt_t* timer)
    248249{
    249         ASSERT(timer);
    250         ASSERT(timer->regs);
     250        assert(timer);
     251        assert(timer->regs);
    251252        /* Enable overflow interrupt */
    252253        timer->regs->tier |= AMDM37x_GPT_TIER_OVF_IRQ_FLAG;
     
    257258static inline bool amdm37x_gpt_irq_ack(amdm37x_gpt_t* timer)
    258259{
    259         ASSERT(timer);
    260         ASSERT(timer->regs);
     260        assert(timer);
     261        assert(timer->regs);
    261262        /* Clear all pending interrupts */
    262263        const uint32_t tisr = timer->regs->tisr;
  • kernel/genarch/include/genarch/drivers/bcm2835/irc.h

    r7354b5e r63e27ef  
    3838#define KERN_BCM2835_IRQC_H_
    3939
     40#include <assert.h>
    4041#include <typedefs.h>
    4142
     
    158159static inline void bcm2835_irc_enable(bcm2835_irc_t *regs, unsigned inum)
    159160{
    160         ASSERT(inum < BCM2835_IRQ_COUNT);
     161        assert(inum < BCM2835_IRQ_COUNT);
    161162        regs->irq_enable[IRQ_TO_BANK(inum)] |= (1 << IRQ_TO_NUM(inum));
    162163}
     
    164165static inline void bcm2835_irc_disable(bcm2835_irc_t *regs, unsigned inum)
    165166{
    166         ASSERT(inum < BCM2835_IRQ_COUNT);
     167        assert(inum < BCM2835_IRQ_COUNT);
    167168        regs->irq_disable[IRQ_TO_BANK(inum)] |= (1 << IRQ_TO_NUM(inum));
    168169}
  • kernel/genarch/include/genarch/drivers/bcm2835/timer.h

    r7354b5e r63e27ef  
    3636#ifndef KERN_BCM2835_TIMER_H_
    3737
     38#include <assert.h>
    3839#include <typedefs.h>
    3940#include <mm/km.h>
     
    6667static inline void bcm2835_timer_start(bcm2835_timer_t* timer)
    6768{
    68         ASSERT(timer);
     69        assert(timer);
    6970        /* Clear pending interrupt on channel 1 */
    7071        timer->cs |= BCM2835_TIMER_CS_M1;
     
    7576static inline void bcm2835_timer_irq_ack(bcm2835_timer_t* timer)
    7677{
    77         ASSERT(timer);
     78        assert(timer);
    7879        /* Clear pending interrupt on channel 1 */
    7980        timer->cs |= BCM2835_TIMER_CS_M1;
  • kernel/genarch/include/genarch/drivers/omap/irc.h

    r7354b5e r63e27ef  
    3939#define KERN_OMAP_IRQC_H_
    4040
     41#include <assert.h>
    4142#include <typedefs.h>
    4243
     
    230231static inline void omap_irc_enable(omap_irc_regs_t *regs, unsigned inum)
    231232{
    232         ASSERT(inum < OMAP_IRC_IRQ_COUNT);
     233        assert(inum < OMAP_IRC_IRQ_COUNT);
    233234        const unsigned set = inum / 32;
    234235        const unsigned pos = inum % 32;
     
    243244static inline void omap_irc_disable(omap_irc_regs_t *regs, unsigned inum)
    244245{
    245         ASSERT(inum < OMAP_IRC_IRQ_COUNT);
     246        assert(inum < OMAP_IRC_IRQ_COUNT);
    246247        const unsigned set = inum / 32;
    247248        const unsigned pos = inum % 32;
  • kernel/genarch/include/genarch/drivers/pl050/pl050.h

    r7354b5e r63e27ef  
    2727 */
    2828
    29 /** @addtogroup genarch         
     29/** @addtogroup genarch
    3030 * @{
    3131 */
Note: See TracChangeset for help on using the changeset viewer.