Changeset a35b458 in mainline for kernel/arch/amd64/src/amd64.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/amd64/src/amd64.c

    r3061bc1 ra35b458  
    9292        multiboot_info_parse(signature, (multiboot_info_t *) info);
    9393        multiboot2_info_parse(signature, (multiboot2_info_t *) info);
    94        
     94
    9595#ifdef CONFIG_SMP
    9696        /* Copy AP bootstrap routines below 1 MB. */
     
    106106        /* Enable FPU */
    107107        cpu_setup_fpu();
    108        
     108
    109109        /* Initialize segmentation */
    110110        pm_init();
    111        
     111
    112112        /* Disable I/O on nonprivileged levels, clear the nested-thread flag */
    113113        write_rflags(read_rflags() & ~(RFLAGS_IOPL | RFLAGS_NT));
    114114        /* Disable alignment check */
    115115        write_cr0(read_cr0() & ~CR0_AM);
    116        
     116
    117117        if (config.cpu_active == 1) {
    118118                interrupt_init();
    119119                bios_init();
    120                
     120
    121121                /* PIC */
    122122                i8259_init();
     
    132132                /* Initialize IRQ routing */
    133133                irq_init(IRQ_COUNT, IRQ_COUNT);
    134                
     134
    135135                /* hard clock */
    136136                i8254_init();
    137                
     137
    138138#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
    139139                bool bfb = false;
    140140#endif
    141                
     141
    142142#ifdef CONFIG_FB
    143143                bfb = bfb_init();
    144144#endif
    145                
     145
    146146#ifdef CONFIG_EGA
    147147                if (!bfb) {
     
    151151                }
    152152#endif
    153                
     153
    154154                /* Merge all memory zones to 1 big zone */
    155155                zone_merge_all();
    156156        }
    157        
     157
    158158        /* Setup fast SYSCALL/SYSRET */
    159159        syscall_setup_cpu();
     
    235235        }
    236236#endif
    237        
     237
    238238        if (irqs_info != NULL)
    239239                sysinfo_set_item_val(irqs_info, NULL, true);
Note: See TracChangeset for help on using the changeset viewer.