Changeset a35b458 in mainline for kernel/arch/arm32/src/exception.c


Ignore:
Timestamp:
2018-03-02T20:10:49Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/exception.c

    r3061bc1 ra35b458  
    7171        volatile uint32_t handler_address_ptr = EXC_VECTORS_SIZE -
    7272            PREFETCH_OFFSET;
    73        
     73
    7474        /* make it LDR instruction and store at exception vector */
    7575        *vector = handler_address_ptr | LDR_OPCODE;
    7676        smc_coherence(vector);
    77        
     77
    7878        /* store handler's address */
    7979        *(vector + EXC_VECTORS) = handler_addr;
     
    9999        install_handler((unsigned) reset_exception_entry,
    100100            (unsigned *) EXC_RESET_VEC);
    101        
     101
    102102        install_handler((unsigned) undef_instr_exception_entry,
    103103            (unsigned *) EXC_UNDEF_INSTR_VEC);
    104        
     104
    105105        install_handler((unsigned) swi_exception_entry,
    106106            (unsigned *) EXC_SWI_VEC);
    107        
     107
    108108        install_handler((unsigned) prefetch_abort_exception_entry,
    109109            (unsigned *) EXC_PREFETCH_ABORT_VEC);
    110        
     110
    111111        install_handler((unsigned) data_abort_exception_entry,
    112112            (unsigned *) EXC_DATA_ABORT_VEC);
    113        
     113
    114114        install_handler((unsigned) irq_exception_entry,
    115115            (unsigned *) EXC_IRQ_VEC);
    116        
     116
    117117        install_handler((unsigned) fiq_exception_entry,
    118118            (unsigned *) EXC_FIQ_VEC);
     
    140140{
    141141        uint32_t control_reg = SCTLR_read();
    142        
     142
    143143        /* switch on the high vectors bit */
    144144        control_reg |= SCTLR_HIGH_VECTORS_EN_FLAG;
    145        
     145
    146146        SCTLR_write(control_reg);
    147147}
     
    190190#endif
    191191        install_exception_handlers();
    192        
     192
    193193        exc_register(EXC_UNDEF_INSTR, "undefined instruction", true,
    194194            (iroutine_t) undef_insn_exception);
Note: See TracChangeset for help on using the changeset viewer.