Changeset 1433ecda in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
kernel/arch/ia32/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/fpu_context.c

    r47b2d7e3 r1433ecda  
    7171{
    7272        asm volatile (
    73                 "fnsave %[fctx]"
    74                 : [fctx] "=m" (fctx->fpu)
     73            "fnsave %[fctx]"
     74            : [fctx] "=m" (fctx->fpu)
    7575        );
    7676}
     
    7979{
    8080        asm volatile (
    81                 "frstor %[fctx]"
    82                 : [fctx] "=m" (fctx->fpu)
     81            "frstor %[fctx]"
     82            : [fctx] "=m" (fctx->fpu)
    8383        );
    8484}
     
    8787{
    8888        asm volatile (
    89                 "fxsave %[fctx]"
    90                 : [fctx] "=m" (fctx->fpu)
     89            "fxsave %[fctx]"
     90            : [fctx] "=m" (fctx->fpu)
    9191        );
    9292}
     
    9595{
    9696        asm volatile (
    97                 "fxrstor %[fctx]"
    98                 : [fctx] "=m" (fctx->fpu)
     97            "fxrstor %[fctx]"
     98            : [fctx] "=m" (fctx->fpu)
    9999        );
    100100}
     
    131131
    132132        asm volatile (
    133                 "fninit\n"
    134                 "stmxcsr %[help0]\n"
    135                 "mov %[help0], %[help1]\n"
    136                 "or %[magic], %[help1]\n"
    137                 "mov %[help1], %[help0]\n"
    138                 "ldmxcsr %[help0]\n"
    139                 : [help0] "+m" (help0), [help1] "+r" (help1)
    140                 : [magic] "i" (X87_ALL_MASK)
     133            "fninit\n"
     134            "stmxcsr %[help0]\n"
     135            "mov %[help0], %[help1]\n"
     136            "or %[magic], %[help1]\n"
     137            "mov %[help1], %[help0]\n"
     138            "ldmxcsr %[help0]\n"
     139            : [help0] "+m" (help0), [help1] "+r" (help1)
     140            : [magic] "i" (X87_ALL_MASK)
    141141        );
    142142}
  • kernel/arch/ia32/src/interrupt.c

    r47b2d7e3 r1433ecda  
    6262 */
    6363
    64 void (* disable_irqs_function)(uint16_t irqmask) = NULL;
    65 void (* enable_irqs_function)(uint16_t irqmask) = NULL;
    66 void (* eoi_function)(void) = NULL;
     64void (*disable_irqs_function)(uint16_t irqmask) = NULL;
     65void (*enable_irqs_function)(uint16_t irqmask) = NULL;
     66void (*eoi_function)(void) = NULL;
    6767const char *irqs_info = NULL;
    6868
     
    146146        uint32_t mxcsr;
    147147        asm volatile (
    148                 "stmxcsr %[mxcsr]\n"
    149                 : [mxcsr] "=m" (mxcsr)
     148            "stmxcsr %[mxcsr]\n"
     149            : [mxcsr] "=m" (mxcsr)
    150150        );
    151151
  • kernel/arch/ia32/src/mm/frame.c

    r47b2d7e3 r1433ecda  
    142142                        name = "invalid";
    143143
    144                 printf("%#018" PRIx64 " %#018" PRIx64" %s\n", e820table[i].base_address,
     144                printf("%#018" PRIx64 " %#018" PRIx64 " %s\n", e820table[i].base_address,
    145145                    e820table[i].size, name);
    146146        }
  • kernel/arch/ia32/src/smp/apic.c

    r47b2d7e3 r1433ecda  
    482482        l_apic[ICRT] = 0xffffffff;
    483483
    484         while (l_apic[CCRT] == t1);
     484        while (l_apic[CCRT] == t1)
     485                ;
    485486
    486487        t1 = l_apic[CCRT];
  • kernel/arch/ia32/src/smp/mps.c

    r47b2d7e3 r1433ecda  
    257257        }
    258258
    259         log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " io_apic=%" PRIu8" pin=%"
     259        log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " io_apic=%" PRIu8 " pin=%"
    260260            PRIu8, iointr->src_bus_id, iointr->src_bus_irq,
    261261            iointr->dst_io_apic_id, iointr->dst_io_apic_pin);
     
    320320        }
    321321
    322         log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " l_apic=%" PRIu8" pin=%"
     322        log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " l_apic=%" PRIu8 " pin=%"
    323323            PRIu8, lintr->src_bus_id, lintr->src_bus_irq,
    324324            lintr->dst_l_apic_id, lintr->dst_l_apic_pin);
Note: See TracChangeset for help on using the changeset viewer.