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/ia32/src/boot/multiboot2.S

    r3061bc1 ra35b458  
    4545        .long multiboot2_header_end - multiboot2_header_start
    4646        .long -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT2_HEADER_ARCH_I386 + (multiboot2_header_end - multiboot2_header_start))
    47        
     47
    4848        /* Information request tag */
    4949        .align 8
     
    5959#endif
    6060        tag_info_req_end:
    61        
     61
    6262        /* Address tag */
    6363        .align 8
     
    7171                .long 0
    7272        tag_address_end:
    73        
     73
    7474        /* Entry address tag */
    7575        .align 8
     
    8080                .long multiboot2_image_start
    8181        tag_entry_address_end:
    82        
     82
    8383        /* Flags tag */
    8484        .align 8
     
    8989                .long MULTIBOOT2_FLAGS_CONSOLE
    9090        tag_flags_end:
    91        
     91
    9292#ifdef CONFIG_FB
    9393        /* Framebuffer tag */
     
    102102        tag_framebuffer_end:
    103103#endif
    104        
     104
    105105        /* Module alignment tag */
    106106        .align 8
     
    111111                .long 0
    112112        tag_module_align_end:
    113        
     113
    114114        /* Tag terminator */
    115115        .align 8
     
    124124        cli
    125125        cld
    126        
     126
    127127        /* Initialize stack pointer */
    128128        movl $START_STACK, %esp
    129        
     129
    130130        /*
    131131         * Initialize Global Descriptor Table and
     
    134134        lgdtl bootstrap_gdtr
    135135        lidtl bootstrap_idtr
    136        
     136
    137137        /* Kernel data + stack */
    138138        movw $GDT_SELECTOR(KDATA_DES), %cx
     
    142142        movw %cx, %ds
    143143        movw %cx, %ss
    144        
     144
    145145        jmpl $GDT_SELECTOR(KTEXT_DES), $multiboot2_meeting_point
    146146        multiboot2_meeting_point:
    147        
     147
    148148        /* Save multiboot arguments */
    149149        movl %eax, multiboot_eax
    150150        movl %ebx, multiboot_ebx
    151        
     151
    152152#ifndef PROCESSOR_i486
    153        
     153
    154154        movl $(INTEL_CPUID_LEVEL), %eax
    155155        cpuid
    156156        cmp $0x0, %eax  /* any function > 0? */
    157157        jbe pse_unsupported
    158        
     158
    159159        movl $(INTEL_CPUID_STANDARD), %eax
    160160        cpuid
    161161        bt $(INTEL_PSE), %edx
    162162        jnc pse_unsupported
    163                
     163
    164164                /* Map kernel and turn paging on */
    165165                call map_kernel_pse
    166166                jmp stack_init
    167        
     167
    168168#endif /* PROCESSOR_i486 */
    169        
     169
    170170        pse_unsupported:
    171                
     171
    172172                /* Map kernel and turn paging on */
    173173                call map_kernel_non_pse
    174        
     174
    175175        stack_init:
    176        
     176
    177177        /* Create the first stack frame */
    178178        pushl $0
    179179        movl %esp, %ebp
    180        
     180
    181181        /* Call ia32_pre_main(multiboot_eax, multiboot_ebx) */
    182182        pushl multiboot_ebx
    183183        pushl multiboot_eax
    184184        call ia32_pre_main
    185        
     185
    186186        /* Call main_bsp() */
    187187        call main_bsp
    188        
     188
    189189        /* Not reached */
    190190        cli
Note: See TracChangeset for help on using the changeset viewer.