Changeset a35b458 in mainline for kernel/arch/ia64/src/interrupt.c


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 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/ia64/src/interrupt.c

    r3061bc1 ra35b458  
    124124{
    125125        assert(n <= VECTOR_MAX);
    126        
     126
    127127        if (n >= VECTORS_16_BUNDLE_START)
    128128                return vector_names_16_bundle[n - VECTORS_16_BUNDLE_START];
     
    141141        printf("cr.isr=%#0" PRIx64 "\tcr.ipsr=%#0" PRIx64 "\n",
    142142            istate->cr_isr.value, istate->cr_ipsr.value);
    143        
     143
    144144        printf("cr.iip=%#0" PRIxPTR ", #%u\t(%s)\n",
    145145            istate->cr_iip, istate->cr_isr.ei,
     
    154154{
    155155        const char *desc;
    156        
     156
    157157        switch (istate->cr_isr.ge_code) {
    158158        case GE_ILLEGALOP:
     
    178178                break;
    179179        }
    180        
     180
    181181        fault_if_from_uspace(istate, "General Exception (%s).", desc);
    182182        panic_badtrap(istate, n, "General Exception (%s).", desc);
     
    209209                istate->cr_ipsr.ri++;
    210210        }
    211        
     211
    212212        interrupts_enable();
    213213        ret = syscall_handler(istate->in0, istate->in1, istate->in2,
     
    236236{
    237237        cr_ivr_t ivr;
    238        
     238
    239239        ivr.value = ivr_read();
    240240        srlz_d();
    241        
     241
    242242        irq_t *irq;
    243        
     243
    244244        switch (ivr.vector) {
    245245        case INTERRUPT_SPURIOUS:
     
    248248#endif
    249249                break;
    250        
     250
    251251#ifdef CONFIG_SMP
    252252        case VECTOR_TLB_SHOOTDOWN_IPI:
     
    255255                break;
    256256#endif
    257        
     257
    258258        case INTERRUPT_TIMER:
    259259                irq = irq_dispatch_and_lock(ivr.vector);
Note: See TracChangeset for help on using the changeset viewer.