Changeset a35b458 in mainline for uspace/lib/c/arch/ppc32/src


Ignore:
Timestamp:
2018-03-02T20:10:49Z (8 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.

Location:
uspace/lib/c/arch/ppc32/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ppc32/src/entry.S

    r3061bc1 ra35b458  
    4444        stw %r3, 0(%r1)
    4545        stwu %r1, -16(%r1)
    46        
     46
    4747        # Pass the PCB pointer to __main() as the first argument.
    4848        # The first argument is passed in r3.
  • uspace/lib/c/arch/ppc32/src/fibril.S

    r3061bc1 ra35b458  
    5555        stw r30, CONTEXT_OFFSET_R30(r3)
    5656        stw r31, CONTEXT_OFFSET_R31(r3)
    57        
     57
    5858        mflr r4
    5959        stw r4, CONTEXT_OFFSET_PC(r3)
    60        
     60
    6161        mfcr r4
    6262        stw r4, CONTEXT_OFFSET_CR(r3)
    63        
     63
    6464        # context_save returns 1
    6565        li r3, 1
     
    8989        lwz r30, CONTEXT_OFFSET_R30(r3)
    9090        lwz r31, CONTEXT_OFFSET_R31(r3)
    91        
     91
    9292        lwz r4, CONTEXT_OFFSET_CR(r3)
    9393        mtcr r4
    94        
     94
    9595        lwz r4, CONTEXT_OFFSET_PC(r3)
    9696        mtlr r4
    97        
     97
    9898        # context_restore returns 0
    9999        li r3, 0
  • uspace/lib/c/arch/ppc32/src/syscall.c

    r3061bc1 ra35b458  
    4747        register sysarg_t __ppc32_reg_r8 asm("8") = p6;
    4848        register sysarg_t __ppc32_reg_r9 asm("9") = id;
    49        
     49
    5050        asm volatile (
    5151                "sc\n"
     
    5959                  "r" (__ppc32_reg_r9)
    6060        );
    61        
     61
    6262        return __ppc32_reg_r3;
    6363}
  • uspace/lib/c/arch/ppc32/src/thread_entry.S

    r3061bc1 ra35b458  
    3030
    3131.text
    32        
     32
    3333## User-space thread entry point for all but the first threads.
    3434#
Note: See TracChangeset for help on using the changeset viewer.