Changeset 1b20da0 in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2018-02-28T17:52:03Z (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:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

Location:
kernel/arch/ia32
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/arch/asm.h

    rdf6ded8 r1b20da0  
    119119                        "outb %b[val], %w[port]\n"
    120120                        :: [val] "a" (val), [port] "d" (port)
    121                 );     
     121                );
    122122        } else
    123123                *port = val;
     
    417417{
    418418        asm volatile (
    419                 "lidtl %[idtr_reg]\n" 
     419                "lidtl %[idtr_reg]\n"
    420420                :: [idtr_reg] "m" (*idtr_reg)
    421421        );
  • kernel/arch/ia32/include/arch/atomic.h

    rdf6ded8 r1b20da0  
    220220
    221221#ifndef local_atomic_exchange
    222 /* 
     222/*
    223223 * Issuing a xchg instruction always implies lock prefix semantics.
    224  * Therefore, it is cheaper to use a cmpxchg without a lock prefix 
     224 * Therefore, it is cheaper to use a cmpxchg without a lock prefix
    225225 * in a loop.
    226226 */
  • kernel/arch/ia32/include/arch/boot/memmap_struct.ag

    rdf6ded8 r1b20da0  
    1 # Copyright (c) 2016 Jakub Jermar 
     1# Copyright (c) 2016 Jakub Jermar
    22# All rights reserved.
    33#
  • kernel/arch/ia32/include/arch/context_struct.ag

    rdf6ded8 r1b20da0  
    1 # Copyright (c) 2014 Jakub Jermar 
     1# Copyright (c) 2014 Jakub Jermar
    22# All rights reserved.
    33#
  • kernel/arch/ia32/include/arch/cpu.h

    rdf6ded8 r1b20da0  
    4343#define EFLAGS_ID       (1 << 21)
    4444
    45 #define CR0_PE          (1 << 0) 
     45#define CR0_PE          (1 << 0)
    4646#define CR0_TS          (1 << 3)
    4747#define CR0_AM          (1 << 18)
  • kernel/arch/ia32/include/arch/istate_struct.ag

    rdf6ded8 r1b20da0  
    1 # Copyright (c) 2014 Jakub Jermar 
     1# Copyright (c) 2014 Jakub Jermar
    22# All rights reserved.
    33#
  • kernel/arch/ia32/include/arch/mm/page.h

    rdf6ded8 r1b20da0  
    161161#define PFERR_CODE_US           (1 << 2)
    162162
    163 /** When bit on this position is 1, a reserved bit was set in page directory. */ 
     163/** When bit on this position is 1, a reserved bit was set in page directory. */
    164164#define PFERR_CODE_RSVD         (1 << 3)
    165165
  • kernel/arch/ia32/src/asm.S

    rdf6ded8 r1b20da0  
    139139 * and without the error word.
    140140 */
    141 #define ISTATE_SOFT_SIZE        ISTATE_SIZE - (6 * 4) 
     141#define ISTATE_SOFT_SIZE        ISTATE_SIZE - (6 * 4)
    142142
    143143/*
     
    329329        .else
    330330                /*
    331                  * Interrupt: fake up an error word 
     331                 * Interrupt: fake up an error word
    332332                 */
    333333                subl $(ISTATE_SOFT_SIZE + 4), %esp
     
    433433
    434434interrupt_handlers:
    435 .irp cnt, LIST_0_63 
     435.irp cnt, LIST_0_63
    436436        handler \cnt
    437437.endr
  • kernel/arch/ia32/src/atomic.S

    rdf6ded8 r1b20da0  
    3434
    3535#
    36 # This is a bus-and-hyperthreading-friendly implementation of spinlock 
     36# This is a bus-and-hyperthreading-friendly implementation of spinlock
    3737#
    3838FUNCTION_BEGIN(spinlock_arch)
     
    4242        movl 12(%esp),%ebx
    4343
    44 0:     
     440:
    4545        pause                   # Pentium 4's with HT love this instruction
    4646        movl (%ebx),%eax
  • kernel/arch/ia32/src/context.S

    rdf6ded8 r1b20da0  
    3939#
    4040FUNCTION_BEGIN(context_save_arch)
    41         movl 0(%esp), %eax      # save pc value into eax       
    42         movl 4(%esp), %edx      # address of the context variable to save context to 
     41        movl 0(%esp), %eax      # save pc value into eax
     42        movl 4(%esp), %edx      # address of the context variable to save context to
    4343
    4444        # save registers to given structure
  • kernel/arch/ia32/src/cpu/cpu.c

    rdf6ded8 r1b20da0  
    7272void fpu_disable(void)
    7373{
    74         write_cr0(read_cr0() & ~CR0_TS); 
     74        write_cr0(read_cr0() & ~CR0_TS);
    7575}
    7676
    7777void fpu_enable(void)
    7878{
    79         write_cr0(read_cr0() | CR0_TS); 
     79        write_cr0(read_cr0() | CR0_TS);
    8080}
    8181
     
    150150void cpu_print_report(cpu_t* cpu)
    151151{
    152         printf("cpu%u: (%s family=%u model=%u stepping=%u apicid=%u) %" PRIu16 
     152        printf("cpu%u: (%s family=%u model=%u stepping=%u apicid=%u) %" PRIu16
    153153                " MHz\n", cpu->id, vendor_str[cpu->arch.vendor], cpu->arch.family,
    154154                cpu->arch.model, cpu->arch.stepping, cpu->arch.id, cpu->frequency_mhz);
  • kernel/arch/ia32/src/smp/ap.S

    rdf6ded8 r1b20da0  
    4747KDATA=16
    4848
    49 /* 
     49/*
    5050 * This piece of code is real-mode and is meant to be aligned at 4K boundary.
    5151 * The requirement for such an alignment comes from MP Specification's
  • kernel/arch/ia32/src/smp/smp.c

    rdf6ded8 r1b20da0  
    106106
    107107        /*
    108          * SMP initialized, cpus array allocated. Assign each CPU its 
     108         * SMP initialized, cpus array allocated. Assign each CPU its
    109109         * physical APIC ID.
    110110         */
  • kernel/arch/ia32/src/vreg.c

    rdf6ded8 r1b20da0  
    7575        gs_load(GDT_SELECTOR(VREG_DES));
    7676
    77         vreg_ptr = NULL; 
     77        vreg_ptr = NULL;
    7878}
    7979
Note: See TracChangeset for help on using the changeset viewer.