Changeset 3bacee1 in mainline for kernel/arch


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

Location:
kernel/arch
Files:
22 edited

Legend:

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

    r76d0981d r3bacee1  
    5555
    5656        asm volatile (
    57                 "andq %%rsp, %[v]\n"
    58                 : [v] "=r" (v)
    59                 : "0" (~((uint64_t) STACK_SIZE - 1))
     57            "andq %%rsp, %[v]\n"
     58            : [v] "=r" (v)
     59            : "0" (~((uint64_t) STACK_SIZE - 1))
    6060        );
    6161
     
    6666{
    6767        asm volatile (
    68                 "hlt\n"
     68            "hlt\n"
    6969        );
    7070}
     
    7474        while (true) {
    7575                asm volatile (
    76                         "hlt\n"
     76                    "hlt\n"
    7777                );
    7878        }
     
    9393
    9494                asm volatile (
    95                         "inb %w[port], %b[val]\n"
    96                         : [val] "=a" (val)
    97                         : [port] "d" (port)
     95                    "inb %w[port], %b[val]\n"
     96                    : [val] "=a" (val)
     97                    : [port] "d" (port)
    9898                );
    9999
     
    117117
    118118                asm volatile (
    119                         "inw %w[port], %w[val]\n"
    120                         : [val] "=a" (val)
    121                         : [port] "d" (port)
     119                    "inw %w[port], %w[val]\n"
     120                    : [val] "=a" (val)
     121                    : [port] "d" (port)
    122122                );
    123123
     
    141141
    142142                asm volatile (
    143                         "inl %w[port], %[val]\n"
    144                         : [val] "=a" (val)
    145                         : [port] "d" (port)
     143                    "inl %w[port], %[val]\n"
     144                    : [val] "=a" (val)
     145                    : [port] "d" (port)
    146146                );
    147147
     
    163163        if (port < (ioport8_t *) IO_SPACE_BOUNDARY) {
    164164                asm volatile (
    165                         "outb %b[val], %w[port]\n"
    166                         :: [val] "a" (val), [port] "d" (port)
     165                    "outb %b[val], %w[port]\n"
     166                    :: [val] "a" (val), [port] "d" (port)
    167167                );
    168168        } else
     
    182182        if (port < (ioport16_t *) IO_SPACE_BOUNDARY) {
    183183                asm volatile (
    184                         "outw %w[val], %w[port]\n"
    185                         :: [val] "a" (val), [port] "d" (port)
     184                    "outw %w[val], %w[port]\n"
     185                    :: [val] "a" (val), [port] "d" (port)
    186186                );
    187187        } else
     
    201201        if (port < (ioport32_t *) IO_SPACE_BOUNDARY) {
    202202                asm volatile (
    203                         "outl %[val], %w[port]\n"
    204                         :: [val] "a" (val), [port] "d" (port)
     203                    "outl %[val], %w[port]\n"
     204                    :: [val] "a" (val), [port] "d" (port)
    205205                );
    206206        } else
     
    213213
    214214        asm volatile (
    215                 "pushfq\n"
    216                 "popq %[v]\n"
    217                 : [v] "=r" (rflags)
     215            "pushfq\n"
     216            "popq %[v]\n"
     217            : [v] "=r" (rflags)
    218218        );
    219219
     
    224224{
    225225        asm volatile (
    226                 "pushq %[v]\n"
    227                 "popfq\n"
    228                 :: [v] "r" (rflags)
     226            "pushq %[v]\n"
     227            "popfq\n"
     228            :: [v] "r" (rflags)
    229229        );
    230230}
     
    300300{
    301301        asm volatile (
    302                 "wrmsr\n"
    303                 :: "c" (msr),
    304                    "a" ((uint32_t) (value)),
    305                    "d" ((uint32_t) (value >> 32))
     302            "wrmsr\n"
     303            :: "c" (msr),
     304              "a" ((uint32_t) (value)),
     305              "d" ((uint32_t) (value >> 32))
    306306        );
    307307}
     
    312312
    313313        asm volatile (
    314                 "rdmsr\n"
    315                 : "=a" (ax), "=d" (dx)
    316                 : "c" (msr)
     314            "rdmsr\n"
     315            : "=a" (ax), "=d" (dx)
     316            : "c" (msr)
    317317        );
    318318
     
    328328{
    329329        asm volatile (
    330                 "invlpg %[addr]\n"
    331                 :: [addr] "m" (*((sysarg_t *) addr))
     330            "invlpg %[addr]\n"
     331            :: [addr] "m" (*((sysarg_t *) addr))
    332332        );
    333333}
     
    341341{
    342342        asm volatile (
    343                 "lgdtq %[gdtr_reg]\n"
    344                 :: [gdtr_reg] "m" (*gdtr_reg)
     343            "lgdtq %[gdtr_reg]\n"
     344            :: [gdtr_reg] "m" (*gdtr_reg)
    345345        );
    346346}
     
    354354{
    355355        asm volatile (
    356                 "sgdtq %[gdtr_reg]\n"
    357                 :: [gdtr_reg] "m" (*gdtr_reg)
     356            "sgdtq %[gdtr_reg]\n"
     357            :: [gdtr_reg] "m" (*gdtr_reg)
    358358        );
    359359}
     
    367367{
    368368        asm volatile (
    369                 "lidtq %[idtr_reg]\n"
    370                 :: [idtr_reg] "m" (*idtr_reg));
     369            "lidtq %[idtr_reg]\n"
     370            :: [idtr_reg] "m" (*idtr_reg));
    371371}
    372372
     
    379379{
    380380        asm volatile (
    381                 "ltr %[sel]"
    382                 :: [sel] "r" (sel)
     381            "ltr %[sel]"
     382            :: [sel] "r" (sel)
    383383        );
    384384}
  • kernel/arch/amd64/src/amd64.c

    r76d0981d r3bacee1  
    215215        outdev_t **ns16550_out_ptr = NULL;
    216216#endif
    217         ns16550_instance_t *ns16550_instance
    218             = ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL,
     217        ns16550_instance_t *ns16550_instance =
     218            ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL,
    219219            ns16550_out_ptr);
    220220        if (ns16550_instance) {
  • kernel/arch/arm32/include/arch/asm.h

    r76d0981d r3bacee1  
    5959{
    6060#ifdef PROCESSOR_ARCH_armv7_a
    61         asm volatile ( "wfe" );
     61        asm volatile ("wfe");
    6262#elif defined(PROCESSOR_ARCH_armv6) | defined(PROCESSOR_arm926ej_s) | defined(PROCESSOR_arm920t)
    6363        WFI_write(0);
     
    107107
    108108        asm volatile (
    109                 "and %[v], sp, %[size]\n"
    110                 : [v] "=r" (v)
    111                 : [size] "r" (~(STACK_SIZE - 1))
     109            "and %[v], sp, %[size]\n"
     110            : [v] "=r" (v)
     111            : [size] "r" (~(STACK_SIZE - 1))
    112112        );
    113113
  • kernel/arch/arm32/include/arch/security_ext.h

    r76d0981d r3bacee1  
    7777static inline bool sec_ext_is_secure(void)
    7878{
    79         return sec_ext_is_implemented()
    80             && (sec_ext_is_monitor_mode() || !(SCR_read() & SCR_NS_FLAG));
     79        return sec_ext_is_implemented() &&
     80            (sec_ext_is_monitor_mode() || !(SCR_read() & SCR_NS_FLAG));
    8181}
    8282
  • kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c

    r76d0981d r3bacee1  
    103103        /* Initialize interrupt controller */
    104104        raspi.irc = (void *) km_map(BCM2835_IRC_ADDR, sizeof(bcm2835_irc_t),
    105                                     PAGE_NOT_CACHEABLE);
     105            PAGE_NOT_CACHEABLE);
    106106        assert(raspi.irc);
    107107        bcm2835_irc_init(raspi.irc);
     
    109109        /* Initialize system timer */
    110110        raspi.timer = (void *) km_map(BCM2835_TIMER_ADDR,
    111                                       sizeof(bcm2835_timer_t),
    112                                       PAGE_NOT_CACHEABLE);
     111            sizeof(bcm2835_timer_t),
     112            PAGE_NOT_CACHEABLE);
    113113}
    114114
     
    129129static void raspberrypi_cpu_halt(void)
    130130{
    131         while (true) ;
     131        while (true)
     132                ;
    132133}
    133134
     
    184185#ifdef CONFIG_PL011_UART
    185186        if (pl011_uart_init(&raspi.uart, BCM2835_UART_IRQ,
    186                             BCM2835_UART0_BASE_ADDRESS))
     187            BCM2835_UART0_BASE_ADDRESS))
    187188                stdout_wire(&raspi.uart.outdev);
    188189#endif
  • kernel/arch/arm32/src/mm/page.c

    r76d0981d r3bacee1  
    6363        for (uintptr_t cur = PHYSMEM_START_ADDR;
    6464            cur < min(KA2PA(config.identity_base) +
    65                 config.identity_size, config.physmem_end);
     65            config.identity_size, config.physmem_end);
    6666            cur += FRAME_SIZE)
    6767                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
  • kernel/arch/ia32/include/arch/asm.h

    r76d0981d r3bacee1  
    5252        while (true) {
    5353                asm volatile (
    54                         "hlt\n"
     54                    "hlt\n"
    5555                );
    5656        }
     
    6060{
    6161        asm volatile (
    62                 "hlt\n"
     62            "hlt\n"
    6363        );
    6464}
     
    117117        if (port < (ioport8_t *) IO_SPACE_BOUNDARY) {
    118118                asm volatile (
    119                         "outb %b[val], %w[port]\n"
    120                         :: [val] "a" (val), [port] "d" (port)
     119                    "outb %b[val], %w[port]\n"
     120                    :: [val] "a" (val), [port] "d" (port)
    121121                );
    122122        } else
     
    136136        if (port < (ioport16_t *) IO_SPACE_BOUNDARY) {
    137137                asm volatile (
    138                         "outw %w[val], %w[port]\n"
    139                         :: [val] "a" (val), [port] "d" (port)
     138                    "outw %w[val], %w[port]\n"
     139                    :: [val] "a" (val), [port] "d" (port)
    140140                );
    141141        } else
     
    155155        if (port < (ioport32_t *) IO_SPACE_BOUNDARY) {
    156156                asm volatile (
    157                         "outl %[val], %w[port]\n"
    158                         :: [val] "a" (val), [port] "d" (port)
     157                    "outl %[val], %w[port]\n"
     158                    :: [val] "a" (val), [port] "d" (port)
    159159                );
    160160        } else
     
    176176
    177177                asm volatile (
    178                         "inb %w[port], %b[val]\n"
    179                         : [val] "=a" (val)
    180                         : [port] "d" (port)
     178                    "inb %w[port], %b[val]\n"
     179                    : [val] "=a" (val)
     180                    : [port] "d" (port)
    181181                );
    182182
     
    200200
    201201                asm volatile (
    202                         "inw %w[port], %w[val]\n"
    203                         : [val] "=a" (val)
    204                         : [port] "d" (port)
     202                    "inw %w[port], %w[val]\n"
     203                    : [val] "=a" (val)
     204                    : [port] "d" (port)
    205205                );
    206206
     
    224224
    225225                asm volatile (
    226                         "inl %w[port], %[val]\n"
    227                         : [val] "=a" (val)
    228                         : [port] "d" (port)
     226                    "inl %w[port], %[val]\n"
     227                    : [val] "=a" (val)
     228                    : [port] "d" (port)
    229229                );
    230230
     
    239239
    240240        asm volatile (
    241                 "pushf\n"
    242                 "popl %[v]\n"
    243                 : [v] "=r" (eflags)
     241            "pushf\n"
     242            "popl %[v]\n"
     243            : [v] "=r" (eflags)
    244244        );
    245245
     
    250250{
    251251        asm volatile (
    252                 "pushl %[v]\n"
    253                 "popf\n"
    254                 :: [v] "r" (eflags)
     252            "pushl %[v]\n"
     253            "popf\n"
     254            :: [v] "r" (eflags)
    255255        );
    256256}
     
    326326{
    327327        asm volatile (
    328                 "wrmsr"
    329                 :: "c" (msr),
    330                    "a" ((uint32_t) (value)),
    331                    "d" ((uint32_t) (value >> 32))
     328            "wrmsr"
     329            :: "c" (msr),
     330              "a" ((uint32_t) (value)),
     331              "d" ((uint32_t) (value >> 32))
    332332        );
    333333}
     
    338338
    339339        asm volatile (
    340                 "rdmsr"
    341                 : "=a" (ax),
    342                   "=d" (dx)
    343                 : "c" (msr)
     340            "rdmsr"
     341            : "=a" (ax),
     342              "=d" (dx)
     343            : "c" (msr)
    344344        );
    345345
     
    362362
    363363        asm volatile (
    364                 "andl %%esp, %[v]\n"
    365                 : [v] "=r" (v)
    366                 : "0" (~(STACK_SIZE - 1))
     364            "andl %%esp, %[v]\n"
     365            : [v] "=r" (v)
     366            : "0" (~(STACK_SIZE - 1))
    367367        );
    368368
     
    378378{
    379379        asm volatile (
    380                 "invlpg %[addr]\n"
    381                 :: [addr] "m" (*(sysarg_t *) addr)
     380            "invlpg %[addr]\n"
     381            :: [addr] "m" (*(sysarg_t *) addr)
    382382        );
    383383}
     
    391391{
    392392        asm volatile (
    393                 "lgdtl %[gdtr_reg]\n"
    394                 :: [gdtr_reg] "m" (*gdtr_reg)
     393            "lgdtl %[gdtr_reg]\n"
     394            :: [gdtr_reg] "m" (*gdtr_reg)
    395395        );
    396396}
     
    404404{
    405405        asm volatile (
    406                 "sgdtl %[gdtr_reg]\n"
    407                 : [gdtr_reg] "=m" (*gdtr_reg)
     406            "sgdtl %[gdtr_reg]\n"
     407            : [gdtr_reg] "=m" (*gdtr_reg)
    408408        );
    409409}
     
    417417{
    418418        asm volatile (
    419                 "lidtl %[idtr_reg]\n"
    420                 :: [idtr_reg] "m" (*idtr_reg)
     419            "lidtl %[idtr_reg]\n"
     420            :: [idtr_reg] "m" (*idtr_reg)
    421421        );
    422422}
     
    430430{
    431431        asm volatile (
    432                 "ltr %[sel]"
    433                 :: [sel] "r" (sel)
     432            "ltr %[sel]"
     433            :: [sel] "r" (sel)
    434434        );
    435435}
     
    443443{
    444444        asm volatile (
    445                 "mov %[sel], %%gs"
    446                 :: [sel] "r" (sel)
     445            "mov %[sel], %%gs"
     446            :: [sel] "r" (sel)
    447447        );
    448448}
  • kernel/arch/ia32/src/cpu/cpu.c

    r76d0981d r3bacee1  
    101101        if (CPU->arch.fi.bits.sse) {
    102102                asm volatile (
    103                         "mov %%cr4, %[help]\n"
    104                         "or %[mask], %[help]\n"
    105                         "mov %[help], %%cr4\n"
    106                         : [help] "+r" (help)
    107                         : [mask] "i" (CR4_OSFXSR | CR4_OSXMMEXCPT)
     103                    "mov %%cr4, %[help]\n"
     104                    "or %[mask], %[help]\n"
     105                    "mov %[help], %%cr4\n"
     106                    : [help] "+r" (help)
     107                    : [mask] "i" (CR4_OSFXSR | CR4_OSXMMEXCPT)
    108108                );
    109109        }
     
    128128                 * Check for AMD processor.
    129129                 */
    130                 if ((info.cpuid_ebx == AMD_CPUID_EBX)
    131                     && (info.cpuid_ecx == AMD_CPUID_ECX)
    132                     && (info.cpuid_edx == AMD_CPUID_EDX))
     130                if ((info.cpuid_ebx == AMD_CPUID_EBX) &&
     131                    (info.cpuid_ecx == AMD_CPUID_ECX) &&
     132                    (info.cpuid_edx == AMD_CPUID_EDX))
    133133                        CPU->arch.vendor = VendorAMD;
    134134
     
    136136                 * Check for Intel processor.
    137137                 */
    138                 if ((info.cpuid_ebx == INTEL_CPUID_EBX)
    139                     && (info.cpuid_ecx == INTEL_CPUID_ECX)
    140                     && (info.cpuid_edx == INTEL_CPUID_EDX))
     138                if ((info.cpuid_ebx == INTEL_CPUID_EBX) &&
     139                    (info.cpuid_ecx == INTEL_CPUID_ECX) &&
     140                    (info.cpuid_edx == INTEL_CPUID_EDX))
    141141                        CPU->arch.vendor = VendorIntel;
    142142
     
    148148}
    149149
    150 void cpu_print_report(cpu_t* cpu)
     150void cpu_print_report(cpu_t *cpu)
    151151{
    152152        printf("cpu%u: (%s family=%u model=%u stepping=%u apicid=%u) %" PRIu16
    153                 " MHz\n", cpu->id, vendor_str[cpu->arch.vendor], cpu->arch.family,
    154                 cpu->arch.model, cpu->arch.stepping, cpu->arch.id, cpu->frequency_mhz);
     153            " MHz\n", cpu->id, vendor_str[cpu->arch.vendor], cpu->arch.family,
     154            cpu->arch.model, cpu->arch.stepping, cpu->arch.id, cpu->frequency_mhz);
    155155}
    156156
  • kernel/arch/ia32/src/ia32.c

    r76d0981d r3bacee1  
    200200        outdev_t **ns16550_out_ptr = NULL;
    201201#endif
    202         ns16550_instance_t *ns16550_instance
    203             = ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL,
     202        ns16550_instance_t *ns16550_instance =
     203            ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL,
    204204            ns16550_out_ptr);
    205205        if (ns16550_instance) {
  • kernel/arch/ia64/src/drivers/ski.c

    r76d0981d r3bacee1  
    8484
    8585        asm volatile (
    86                 "mov r15 = %1\n"
    87                 "break 0x80000;;\n"  /* modifies r8 */
    88                 "mov %0 = r8;;\n"
    89 
    90                 : "=r" (ch)
    91                 : "i" (SKI_GETCHAR)
    92                 : "r15", "r8"
     86            "mov r15 = %1\n"
     87            "break 0x80000;;\n"  /* modifies r8 */
     88            "mov %0 = r8;;\n"
     89
     90            : "=r" (ch)
     91            : "i" (SKI_GETCHAR)
     92            : "r15", "r8"
    9393        );
    9494
     
    143143
    144144        asm volatile (
    145                 "mov r15 = %0\n"
    146                 "break 0x80000\n"
    147                 :
    148                 : "i" (SKI_INIT_CONSOLE)
    149                 : "r15", "r8"
     145            "mov r15 = %0\n"
     146            "break 0x80000\n"
     147            :
     148            : "i" (SKI_INIT_CONSOLE)
     149            : "r15", "r8"
    150150        );
    151151
     
    169169{
    170170        asm volatile (
    171                 "mov r15 = %[cmd]\n"
    172                 "mov r32 = %[ch]\n"   /* r32 is in0 */
    173                 "break 0x80000\n"     /* modifies r8 */
    174                 :
    175                 : [cmd] "i" (SKI_PUTCHAR), [ch] "r" (ch)
    176                 : "r15", "in0", "r8"
     171            "mov r15 = %[cmd]\n"
     172            "mov r32 = %[ch]\n"   /* r32 is in0 */
     173            "break 0x80000\n"     /* modifies r8 */
     174            :
     175            : [cmd] "i" (SKI_PUTCHAR), [ch] "r" (ch)
     176            : "r15", "in0", "r8"
    177177        );
    178178}
  • kernel/arch/ia64/src/ia64.c

    r76d0981d r3bacee1  
    181181
    182182#ifdef CONFIG_NS16550
    183         ns16550_instance_t *ns16550_instance
    184             = ns16550_init(NS16550_BASE, 0, NS16550_IRQ, NULL, NULL,
     183        ns16550_instance_t *ns16550_instance =
     184            ns16550_init(NS16550_BASE, 0, NS16550_IRQ, NULL, NULL,
    185185            NULL);
    186186        if (ns16550_instance) {
     
    253253            (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value);
    254254
    255         while (true);
     255        while (true)
     256                ;
    256257}
    257258
     
    259260{
    260261        pio_write_8((ioport8_t *)0x64, 0xfe);
    261         while (true);
     262        while (true)
     263                ;
    262264}
    263265
  • kernel/arch/ia64/src/interrupt.c

    r76d0981d r3bacee1  
    229229{
    230230        asm volatile (
    231                 "mov cr.eoi = r0 ;;"
     231            "mov cr.eoi = r0 ;;"
    232232        );
    233233}
     
    245245        case INTERRUPT_SPURIOUS:
    246246#ifdef CONFIG_DEBUG
    247                 printf("cpu%d: spurious interrupt\n", CPU->id);
     247                printf("cpu%d: spurious interrupt\n", CPU->id);
    248248#endif
    249249                break;
  • kernel/arch/mips32/include/arch/asm.h

    r76d0981d r3bacee1  
    5757
    5858        asm volatile (
    59                 "and %[base], $29, %[mask]\n"
    60                 : [base] "=r" (base)
    61                 : [mask] "r" (~(STACK_SIZE - 1))
     59            "and %[base], $29, %[mask]\n"
     60            : [base] "=r" (base)
     61            : [mask] "r" (~(STACK_SIZE - 1))
    6262        );
    6363
  • kernel/arch/mips32/include/arch/mm/tlb.h

    r76d0981d r3bacee1  
    8282                unsigned : 2;       /* zero */
    8383#endif
    84         } __attribute__ ((packed));
     84        } __attribute__((packed));
    8585        uint32_t value;
    8686} entry_lo_t;
     
    9797                unsigned vpn2 : 19;
    9898#endif
    99         } __attribute__ ((packed));
     99        } __attribute__((packed));
    100100        uint32_t value;
    101101} entry_hi_t;
     
    112112                unsigned : 7;
    113113#endif
    114         } __attribute__ ((packed));
     114        } __attribute__((packed));
    115115        uint32_t value;
    116116} page_mask_t;
     
    127127                unsigned p : 1;
    128128#endif
    129         } __attribute__ ((packed));
     129        } __attribute__((packed));
    130130        uint32_t value;
    131131} tlb_index_t;
  • kernel/arch/mips32/src/debugger.c

    r76d0981d r3bacee1  
    102102        uint32_t value;
    103103} jmpinstr[] = {
    104         {0xf3ff0000, 0x41000000},  /* BCzF */
    105         {0xf3ff0000, 0x41020000},  /* BCzFL */
    106         {0xf3ff0000, 0x41010000},  /* BCzT */
    107         {0xf3ff0000, 0x41030000},  /* BCzTL */
    108         {0xfc000000, 0x10000000},  /* BEQ */
    109         {0xfc000000, 0x50000000},  /* BEQL */
    110         {0xfc1f0000, 0x04010000},  /* BEQL */
    111         {0xfc1f0000, 0x04110000},  /* BGEZAL */
    112         {0xfc1f0000, 0x04130000},  /* BGEZALL */
    113         {0xfc1f0000, 0x04030000},  /* BGEZL */
    114         {0xfc1f0000, 0x1c000000},  /* BGTZ */
    115         {0xfc1f0000, 0x5c000000},  /* BGTZL */
    116         {0xfc1f0000, 0x18000000},  /* BLEZ */
    117         {0xfc1f0000, 0x58000000},  /* BLEZL */
    118         {0xfc1f0000, 0x04000000},  /* BLTZ */
    119         {0xfc1f0000, 0x04100000},  /* BLTZAL */
    120         {0xfc1f0000, 0x04120000},  /* BLTZALL */
    121         {0xfc1f0000, 0x04020000},  /* BLTZL */
    122         {0xfc000000, 0x14000000},  /* BNE */
    123         {0xfc000000, 0x54000000},  /* BNEL */
    124         {0xfc000000, 0x08000000},  /* J */
    125         {0xfc000000, 0x0c000000},  /* JAL */
    126         {0xfc1f07ff, 0x00000009},  /* JALR */
    127         {0, 0}                     /* end of table */
     104        { 0xf3ff0000, 0x41000000 },  /* BCzF */
     105        { 0xf3ff0000, 0x41020000 },  /* BCzFL */
     106        { 0xf3ff0000, 0x41010000 },  /* BCzT */
     107        { 0xf3ff0000, 0x41030000 },  /* BCzTL */
     108        { 0xfc000000, 0x10000000 },  /* BEQ */
     109        { 0xfc000000, 0x50000000 },  /* BEQL */
     110        { 0xfc1f0000, 0x04010000 },  /* BEQL */
     111        { 0xfc1f0000, 0x04110000 },  /* BGEZAL */
     112        { 0xfc1f0000, 0x04130000 },  /* BGEZALL */
     113        { 0xfc1f0000, 0x04030000 },  /* BGEZL */
     114        { 0xfc1f0000, 0x1c000000 },  /* BGTZ */
     115        { 0xfc1f0000, 0x5c000000 },  /* BGTZL */
     116        { 0xfc1f0000, 0x18000000 },  /* BLEZ */
     117        { 0xfc1f0000, 0x58000000 },  /* BLEZL */
     118        { 0xfc1f0000, 0x04000000 },  /* BLTZ */
     119        { 0xfc1f0000, 0x04100000 },  /* BLTZAL */
     120        { 0xfc1f0000, 0x04120000 },  /* BLTZALL */
     121        { 0xfc1f0000, 0x04020000 },  /* BLTZL */
     122        { 0xfc000000, 0x14000000 },  /* BNE */
     123        { 0xfc000000, 0x54000000 },  /* BNEL */
     124        { 0xfc000000, 0x08000000 },  /* J */
     125        { 0xfc000000, 0x0c000000 },  /* JAL */
     126        { 0xfc1f07ff, 0x00000009 },  /* JALR */
     127        { 0, 0 }                     /* end of table */
    128128};
    129129
     
    273273                            breakpoints[i].counter, (void *) breakpoints[i].address,
    274274                            ((breakpoints[i].flags & BKPOINT_INPROG) ? "true" :
    275                             "false"), ((breakpoints[i].flags & BKPOINT_ONESHOT)
    276                             ? "true" : "false"), ((breakpoints[i].flags &
     275                            "false"), ((breakpoints[i].flags & BKPOINT_ONESHOT) ?
     276                            "true" : "false"), ((breakpoints[i].flags &
    277277                            BKPOINT_FUNCCALL) ? "true" : "false"), symbol);
    278278                }
     
    382382                smc_coherence(cur->address);
    383383
    384                 if (! (cur->flags & BKPOINT_ONESHOT)) {
     384                if (!(cur->flags & BKPOINT_ONESHOT)) {
    385385                        /* Set Breakpoint on next instruction */
    386386                        ((uint32_t *)cur->address)[1] = 0x0d;
     
    422422        }
    423423
    424         if ((cur) && (cur->address == fireaddr)
    425             && ((cur->flags & BKPOINT_INPROG))) {
     424        if ((cur) && (cur->address == fireaddr) &&
     425            ((cur->flags & BKPOINT_INPROG))) {
    426426                /* Remove one-shot breakpoint */
    427427                if ((cur->flags & BKPOINT_ONESHOT))
  • kernel/arch/mips32/src/mach/msim/msim.c

    r76d0981d r3bacee1  
    9494         * interrupts.
    9595         */
    96         dsrlnin_instance_t *dsrlnin_instance
    97             = dsrlnin_init((dsrlnin_t *) MSIM_KBD_ADDRESS, MSIM_KBD_IRQ);
     96        dsrlnin_instance_t *dsrlnin_instance =
     97            dsrlnin_init((dsrlnin_t *) MSIM_KBD_ADDRESS, MSIM_KBD_IRQ);
    9898        if (dsrlnin_instance) {
    9999                srln_instance_t *srln_instance = srln_init();
  • kernel/arch/mips32/src/mm/km.c

    r76d0981d r3bacee1  
    5151bool km_is_non_identity_arch(uintptr_t addr)
    5252{
    53         return iswithin(KM_MIPS32_KSSEG_START, KM_MIPS32_KSSEG_SIZE, addr, 1)
    54             || iswithin(KM_MIPS32_KSEG3_START, KM_MIPS32_KSEG3_SIZE, addr, 1);
     53        return iswithin(KM_MIPS32_KSSEG_START, KM_MIPS32_KSSEG_SIZE, addr, 1) ||
     54            iswithin(KM_MIPS32_KSEG3_START, KM_MIPS32_KSEG3_SIZE, addr, 1);
    5555}
    5656
  • kernel/arch/ppc32/src/mm/pht.c

    r76d0981d r3bacee1  
    109109        /* Find colliding PTE in PTEG */
    110110        for (i = 0; i < 8; i++) {
    111                 if ((phte[base + i].v)
    112                     && (phte[base + i].vsid == vsid)
    113                     && (phte[base + i].api == api)
    114                     && (phte[base + i].h == 0)) {
     111                if ((phte[base + i].v) &&
     112                    (phte[base + i].vsid == vsid) &&
     113                    (phte[base + i].api == api) &&
     114                    (phte[base + i].h == 0)) {
    115115                        found = true;
    116116                        break;
     
    134134                /* Find colliding PTE in PTEG */
    135135                for (i = 0; i < 8; i++) {
    136                         if ((phte[base2 + i].v)
    137                             && (phte[base2 + i].vsid == vsid)
    138                             && (phte[base2 + i].api == api)
    139                             && (phte[base2 + i].h == 1)) {
     136                        if ((phte[base2 + i].v) &&
     137                            (phte[base2 + i].vsid == vsid) &&
     138                            (phte[base2 + i].api == api) &&
     139                            (phte[base2 + i].h == 1)) {
    140140                                found = true;
    141141                                base = base2;
  • kernel/arch/ppc32/src/ppc32.c

    r76d0981d r3bacee1  
    185185                fb_scanline = *((uint32_t *) prop->value);
    186186
    187         if ((fb_addr) && (fb_width > 0) && (fb_height > 0)
    188             && (fb_scanline > 0) && (visual != VISUAL_UNKNOWN)) {
     187        if ((fb_addr) && (fb_width > 0) && (fb_height > 0) &&
     188            (fb_scanline > 0) && (visual != VISUAL_UNKNOWN)) {
    189189                fb_properties_t fb_prop = {
    190190                        .addr = fb_addr,
     
    301301
    302302        /* Unreachable */
    303         while (true);
     303        while (true)
     304                ;
    304305}
    305306
     
    321322{
    322323        // TODO
    323         while (true);
     324        while (true)
     325                ;
    324326}
    325327
  • kernel/arch/sparc64/include/arch/asm.h

    r76d0981d r3bacee1  
    9393
    9494        asm volatile (
    95                 "rdpr %%pstate, %[v]\n"
    96                 : [v] "=r" (v)
     95            "rdpr %%pstate, %[v]\n"
     96            : [v] "=r" (v)
    9797        );
    9898
     
    108108{
    109109        asm volatile (
    110                 "wrpr %[v], %[zero], %%pstate\n"
    111                 :: [v] "r" (v),
    112                    [zero] "i" (0)
     110            "wrpr %[v], %[zero], %%pstate\n"
     111            :: [v] "r" (v),
     112              [zero] "i" (0)
    113113        );
    114114}
     
    124124
    125125        asm volatile (
    126                 "rd %%tick_cmpr, %[v]\n"
    127                 : [v] "=r" (v)
     126            "rd %%tick_cmpr, %[v]\n"
     127            : [v] "=r" (v)
    128128        );
    129129
     
    139139{
    140140        asm volatile (
    141                 "wr %[v], %[zero], %%tick_cmpr\n"
    142                 :: [v] "r" (v),
    143                    [zero] "i" (0)
     141            "wr %[v], %[zero], %%tick_cmpr\n"
     142            :: [v] "r" (v),
     143              [zero] "i" (0)
    144144        );
    145145}
     
    155155
    156156        asm volatile (
    157                 "rd %%asr25, %[v]\n"
    158                 : [v] "=r" (v)
     157            "rd %%asr25, %[v]\n"
     158            : [v] "=r" (v)
    159159        );
    160160
     
    170170{
    171171        asm volatile (
    172                 "wr %[v], %[zero], %%asr25\n"
    173                 :: [v] "r" (v),
    174                    [zero] "i" (0)
     172            "wr %[v], %[zero], %%asr25\n"
     173            :: [v] "r" (v),
     174              [zero] "i" (0)
    175175        );
    176176}
     
    186186
    187187        asm volatile (
    188                 "rdpr %%tick, %[v]\n"
    189                 : [v] "=r" (v)
     188            "rdpr %%tick, %[v]\n"
     189            : [v] "=r" (v)
    190190        );
    191191
     
    201201{
    202202        asm volatile (
    203                 "wrpr %[v], %[zero], %%tick\n"
    204                 :: [v] "r" (v),
    205                    [zero] "i" (0)
     203            "wrpr %[v], %[zero], %%tick\n"
     204            :: [v] "r" (v),
     205              [zero] "i" (0)
    206206        );
    207207}
     
    217217
    218218        asm volatile (
    219                 "rd %%fprs, %[v]\n"
    220                 : [v] "=r" (v)
     219            "rd %%fprs, %[v]\n"
     220            : [v] "=r" (v)
    221221        );
    222222
     
    232232{
    233233        asm volatile (
    234                 "wr %[v], %[zero], %%fprs\n"
    235                 :: [v] "r" (v),
    236                    [zero] "i" (0)
     234            "wr %[v], %[zero], %%fprs\n"
     235            :: [v] "r" (v),
     236              [zero] "i" (0)
    237237        );
    238238}
     
    248248
    249249        asm volatile (
    250                 "rd %%softint, %[v]\n"
    251                 : [v] "=r" (v)
     250            "rd %%softint, %[v]\n"
     251            : [v] "=r" (v)
    252252        );
    253253
     
    263263{
    264264        asm volatile (
    265                 "wr %[v], %[zero], %%softint\n"
    266                 :: [v] "r" (v),
    267                    [zero] "i" (0)
     265            "wr %[v], %[zero], %%softint\n"
     266            :: [v] "r" (v),
     267              [zero] "i" (0)
    268268        );
    269269}
     
    279279{
    280280        asm volatile (
    281                 "wr %[v], %[zero], %%clear_softint\n"
    282                 :: [v] "r" (v),
    283                    [zero] "i" (0)
     281            "wr %[v], %[zero], %%clear_softint\n"
     282            :: [v] "r" (v),
     283              [zero] "i" (0)
    284284        );
    285285}
     
    295295{
    296296        asm volatile (
    297                 "wr %[v], %[zero], %%set_softint\n"
    298                 :: [v] "r" (v),
    299                    [zero] "i" (0)
     297            "wr %[v], %[zero], %%set_softint\n"
     298            :: [v] "r" (v),
     299              [zero] "i" (0)
    300300        );
    301301}
     
    309309 *
    310310 */
    311 NO_TRACE static inline ipl_t interrupts_enable(void) {
     311NO_TRACE static inline ipl_t interrupts_enable(void)
     312{
    312313        pstate_reg_t pstate;
    313314        uint64_t value = pstate_read();
     
    328329 *
    329330 */
    330 NO_TRACE static inline ipl_t interrupts_disable(void) {
     331NO_TRACE static inline ipl_t interrupts_disable(void)
     332{
    331333        pstate_reg_t pstate;
    332334        uint64_t value = pstate_read();
     
    346348 *
    347349 */
    348 NO_TRACE static inline void interrupts_restore(ipl_t ipl) {
     350NO_TRACE static inline void interrupts_restore(ipl_t ipl)
     351{
    349352        pstate_reg_t pstate;
    350353
     
    361364 *
    362365 */
    363 NO_TRACE static inline ipl_t interrupts_read(void) {
     366NO_TRACE static inline ipl_t interrupts_read(void)
     367{
    364368        return (ipl_t) pstate_read();
    365369}
     
    390394
    391395        asm volatile (
    392                 "add %%sp, %[stack_bias], %[unbiased_sp]\n"
    393                 : [unbiased_sp] "=r" (unbiased_sp)
    394                 : [stack_bias] "i" (STACK_BIAS)
     396            "add %%sp, %[stack_bias], %[unbiased_sp]\n"
     397            : [unbiased_sp] "=r" (unbiased_sp)
     398            : [stack_bias] "i" (STACK_BIAS)
    395399        );
    396400
     
    408412
    409413        asm volatile (
    410                 "rdpr %%ver, %[v]\n"
    411                 : [v] "=r" (v)
     414            "rdpr %%ver, %[v]\n"
     415            : [v] "=r" (v)
    412416        );
    413417
     
    425429
    426430        asm volatile (
    427                 "rdpr %%tpc, %[v]\n"
    428                 : [v] "=r" (v)
     431            "rdpr %%tpc, %[v]\n"
     432            : [v] "=r" (v)
    429433        );
    430434
     
    442446
    443447        asm volatile (
    444                 "rdpr %%tl, %[v]\n"
    445                 : [v] "=r" (v)
     448            "rdpr %%tl, %[v]\n"
     449            : [v] "=r" (v)
    446450        );
    447451
     
    459463
    460464        asm volatile (
    461                 "rdpr %%tba, %[v]\n"
    462                 : [v] "=r" (v)
     465            "rdpr %%tba, %[v]\n"
     466            : [v] "=r" (v)
    463467        );
    464468
     
    474478{
    475479        asm volatile (
    476                 "wrpr %[v], %[zero], %%tba\n"
    477                 :: [v] "r" (v),
    478                    [zero] "i" (0)
     480            "wrpr %[v], %[zero], %%tba\n"
     481            :: [v] "r" (v),
     482              [zero] "i" (0)
    479483        );
    480484}
     
    494498
    495499        asm volatile (
    496                 "ldxa [%[va]] %[asi], %[v]\n"
    497                 : [v] "=r" (v)
    498                 : [va] "r" (va),
    499                   [asi] "i" ((unsigned int) asi)
     500            "ldxa [%[va]] %[asi], %[v]\n"
     501            : [v] "=r" (v)
     502            : [va] "r" (va),
     503              [asi] "i" ((unsigned int) asi)
    500504        );
    501505
     
    513517{
    514518        asm volatile (
    515                 "stxa %[v], [%[va]] %[asi]\n"
    516                 :: [v] "r" (v),
    517                    [va] "r" (va),
    518                    [asi] "i" ((unsigned int) asi)
    519                 : "memory"
     519            "stxa %[v], [%[va]] %[asi]\n"
     520            :: [v] "r" (v),
     521              [va] "r" (va),
     522              [asi] "i" ((unsigned int) asi)
     523            : "memory"
    520524        );
    521525}
  • kernel/arch/sparc64/src/fpu_context.c

    r76d0981d r3bacee1  
    4141{
    4242        asm volatile (
    43                 "std %%f0, %0\n"
    44                 "std %%f2, %1\n"
    45                 "std %%f4, %2\n"
    46                 "std %%f6, %3\n"
    47                 "std %%f8, %4\n"
    48                 "std %%f10, %5\n"
    49                 "std %%f12, %6\n"
    50                 "std %%f14, %7\n"
    51                 "std %%f16, %8\n"
    52                 "std %%f18, %9\n"
    53                 "std %%f20, %10\n"
    54                 "std %%f22, %11\n"
    55                 "std %%f24, %12\n"
    56                 "std %%f26, %13\n"
    57                 "std %%f28, %14\n"
    58                 "std %%f30, %15\n"
    59                 : "=m" (fctx->d[0]), "=m" (fctx->d[1]), "=m" (fctx->d[2]), "=m" (fctx->d[3]),
    60                   "=m" (fctx->d[4]), "=m" (fctx->d[5]), "=m" (fctx->d[6]), "=m" (fctx->d[7]),
    61                   "=m" (fctx->d[8]), "=m" (fctx->d[9]), "=m" (fctx->d[10]), "=m" (fctx->d[11]),
    62                   "=m" (fctx->d[12]), "=m" (fctx->d[13]), "=m" (fctx->d[14]), "=m" (fctx->d[15])
     43            "std %%f0, %0\n"
     44            "std %%f2, %1\n"
     45            "std %%f4, %2\n"
     46            "std %%f6, %3\n"
     47            "std %%f8, %4\n"
     48            "std %%f10, %5\n"
     49            "std %%f12, %6\n"
     50            "std %%f14, %7\n"
     51            "std %%f16, %8\n"
     52            "std %%f18, %9\n"
     53            "std %%f20, %10\n"
     54            "std %%f22, %11\n"
     55            "std %%f24, %12\n"
     56            "std %%f26, %13\n"
     57            "std %%f28, %14\n"
     58            "std %%f30, %15\n"
     59            : "=m" (fctx->d[0]), "=m" (fctx->d[1]), "=m" (fctx->d[2]), "=m" (fctx->d[3]),
     60              "=m" (fctx->d[4]), "=m" (fctx->d[5]), "=m" (fctx->d[6]), "=m" (fctx->d[7]),
     61              "=m" (fctx->d[8]), "=m" (fctx->d[9]), "=m" (fctx->d[10]), "=m" (fctx->d[11]),
     62              "=m" (fctx->d[12]), "=m" (fctx->d[13]), "=m" (fctx->d[14]), "=m" (fctx->d[15])
    6363        );
    6464
     
    6969
    7070        asm volatile (
    71                 "std %%f32, %0\n"
    72                 "std %%f34, %1\n"
    73                 "std %%f36, %2\n"
    74                 "std %%f38, %3\n"
    75                 "std %%f40, %4\n"
    76                 "std %%f42, %5\n"
    77                 "std %%f44, %6\n"
    78                 "std %%f46, %7\n"
    79                 "std %%f48, %8\n"
    80                 "std %%f50, %9\n"
    81                 "std %%f52, %10\n"
    82                 "std %%f54, %11\n"
    83                 "std %%f56, %12\n"
    84                 "std %%f58, %13\n"
    85                 "std %%f60, %14\n"
    86                 "std %%f62, %15\n"
    87                 : "=m" (fctx->d[16]), "=m" (fctx->d[17]), "=m" (fctx->d[18]), "=m" (fctx->d[19]),
    88                   "=m" (fctx->d[20]), "=m" (fctx->d[21]), "=m" (fctx->d[22]), "=m" (fctx->d[23]),
    89                   "=m" (fctx->d[24]), "=m" (fctx->d[25]), "=m" (fctx->d[26]), "=m" (fctx->d[27]),
    90                   "=m" (fctx->d[28]), "=m" (fctx->d[29]), "=m" (fctx->d[30]), "=m" (fctx->d[31])
     71            "std %%f32, %0\n"
     72            "std %%f34, %1\n"
     73            "std %%f36, %2\n"
     74            "std %%f38, %3\n"
     75            "std %%f40, %4\n"
     76            "std %%f42, %5\n"
     77            "std %%f44, %6\n"
     78            "std %%f46, %7\n"
     79            "std %%f48, %8\n"
     80            "std %%f50, %9\n"
     81            "std %%f52, %10\n"
     82            "std %%f54, %11\n"
     83            "std %%f56, %12\n"
     84            "std %%f58, %13\n"
     85            "std %%f60, %14\n"
     86            "std %%f62, %15\n"
     87            : "=m" (fctx->d[16]), "=m" (fctx->d[17]), "=m" (fctx->d[18]), "=m" (fctx->d[19]),
     88              "=m" (fctx->d[20]), "=m" (fctx->d[21]), "=m" (fctx->d[22]), "=m" (fctx->d[23]),
     89              "=m" (fctx->d[24]), "=m" (fctx->d[25]), "=m" (fctx->d[26]), "=m" (fctx->d[27]),
     90              "=m" (fctx->d[28]), "=m" (fctx->d[29]), "=m" (fctx->d[30]), "=m" (fctx->d[31])
    9191        );
    9292
     
    9797{
    9898        asm volatile (
    99                 "ldd %0, %%f0\n"
    100                 "ldd %1, %%f2\n"
    101                 "ldd %2, %%f4\n"
    102                 "ldd %3, %%f6\n"
    103                 "ldd %4, %%f8\n"
    104                 "ldd %5, %%f10\n"
    105                 "ldd %6, %%f12\n"
    106                 "ldd %7, %%f14\n"
    107                 "ldd %8, %%f16\n"
    108                 "ldd %9, %%f18\n"
    109                 "ldd %10, %%f20\n"
    110                 "ldd %11, %%f22\n"
    111                 "ldd %12, %%f24\n"
    112                 "ldd %13, %%f26\n"
    113                 "ldd %14, %%f28\n"
    114                 "ldd %15, %%f30\n"
    115                 :
    116                 : "m" (fctx->d[0]), "m" (fctx->d[1]), "m" (fctx->d[2]), "m" (fctx->d[3]),
    117                   "m" (fctx->d[4]), "m" (fctx->d[5]), "m" (fctx->d[6]), "m" (fctx->d[7]),
    118                   "m" (fctx->d[8]), "m" (fctx->d[9]), "m" (fctx->d[10]), "m" (fctx->d[11]),
    119                   "m" (fctx->d[12]), "m" (fctx->d[13]), "m" (fctx->d[14]), "m" (fctx->d[15])
     99            "ldd %0, %%f0\n"
     100            "ldd %1, %%f2\n"
     101            "ldd %2, %%f4\n"
     102            "ldd %3, %%f6\n"
     103            "ldd %4, %%f8\n"
     104            "ldd %5, %%f10\n"
     105            "ldd %6, %%f12\n"
     106            "ldd %7, %%f14\n"
     107            "ldd %8, %%f16\n"
     108            "ldd %9, %%f18\n"
     109            "ldd %10, %%f20\n"
     110            "ldd %11, %%f22\n"
     111            "ldd %12, %%f24\n"
     112            "ldd %13, %%f26\n"
     113            "ldd %14, %%f28\n"
     114            "ldd %15, %%f30\n"
     115            :
     116            : "m" (fctx->d[0]), "m" (fctx->d[1]), "m" (fctx->d[2]), "m" (fctx->d[3]),
     117              "m" (fctx->d[4]), "m" (fctx->d[5]), "m" (fctx->d[6]), "m" (fctx->d[7]),
     118              "m" (fctx->d[8]), "m" (fctx->d[9]), "m" (fctx->d[10]), "m" (fctx->d[11]),
     119              "m" (fctx->d[12]), "m" (fctx->d[13]), "m" (fctx->d[14]), "m" (fctx->d[15])
    120120        );
    121121
     
    126126
    127127        asm volatile (
    128                 "ldd %0, %%f32\n"
    129                 "ldd %1, %%f34\n"
    130                 "ldd %2, %%f36\n"
    131                 "ldd %3, %%f38\n"
    132                 "ldd %4, %%f40\n"
    133                 "ldd %5, %%f42\n"
    134                 "ldd %6, %%f44\n"
    135                 "ldd %7, %%f46\n"
    136                 "ldd %8, %%f48\n"
    137                 "ldd %9, %%f50\n"
    138                 "ldd %10, %%f52\n"
    139                 "ldd %11, %%f54\n"
    140                 "ldd %12, %%f56\n"
    141                 "ldd %13, %%f58\n"
    142                 "ldd %14, %%f60\n"
    143                 "ldd %15, %%f62\n"
    144                 :
    145                 : "m" (fctx->d[16]), "m" (fctx->d[17]), "m" (fctx->d[18]), "m" (fctx->d[19]),
    146                   "m" (fctx->d[20]), "m" (fctx->d[21]), "m" (fctx->d[22]), "m" (fctx->d[23]),
    147                   "m" (fctx->d[24]), "m" (fctx->d[25]), "m" (fctx->d[26]), "m" (fctx->d[27]),
    148                   "m" (fctx->d[28]), "m" (fctx->d[29]), "m" (fctx->d[30]), "m" (fctx->d[31])
     128            "ldd %0, %%f32\n"
     129            "ldd %1, %%f34\n"
     130            "ldd %2, %%f36\n"
     131            "ldd %3, %%f38\n"
     132            "ldd %4, %%f40\n"
     133            "ldd %5, %%f42\n"
     134            "ldd %6, %%f44\n"
     135            "ldd %7, %%f46\n"
     136            "ldd %8, %%f48\n"
     137            "ldd %9, %%f50\n"
     138            "ldd %10, %%f52\n"
     139            "ldd %11, %%f54\n"
     140            "ldd %12, %%f56\n"
     141            "ldd %13, %%f58\n"
     142            "ldd %14, %%f60\n"
     143            "ldd %15, %%f62\n"
     144            :
     145            : "m" (fctx->d[16]), "m" (fctx->d[17]), "m" (fctx->d[18]), "m" (fctx->d[19]),
     146              "m" (fctx->d[20]), "m" (fctx->d[21]), "m" (fctx->d[22]), "m" (fctx->d[23]),
     147              "m" (fctx->d[24]), "m" (fctx->d[25]), "m" (fctx->d[26]), "m" (fctx->d[27]),
     148              "m" (fctx->d[28]), "m" (fctx->d[29]), "m" (fctx->d[30]), "m" (fctx->d[31])
    149149        );
    150150
  • kernel/arch/sparc64/src/sun4v/md.c

    r76d0981d r3bacee1  
    6262        uint32_t name_blk_sz;           /**< Size in bytes of name block */
    6363        uint32_t data_blk_sz;           /**< Size in bytes of data block */
    64 } __attribute__ ((packed)) md_header_t;
     64} __attribute__((packed)) md_header_t;
    6565
    6666/** machine description element (in the node block) */
     
    9191                uint64_t val;
    9292        } d;
    93 } __attribute__ ((packed)) md_element_t;
     93} __attribute__((packed)) md_element_t;
    9494
    9595/** index of the element within the node block */
     
    9898/** buffer to which the machine description will be saved */
    9999static uint8_t mach_desc[MD_MAX_SIZE]
    100          __attribute__ ((aligned (16)));
     100    __attribute__((aligned(16)));
    101101
    102102
     
    129129 */
    130130bool md_get_integer_property(md_node_t node, const char *key,
    131         uint64_t *result)
     131    uint64_t *result)
    132132{
    133133        element_idx_t idx = node;
     
    152152 */
    153153bool md_get_string_property(md_node_t node, const char *key,
    154         const char **result)
     154    const char **result)
    155155{
    156156        md_header_t *md_header = (md_header_t *) mach_desc;
Note: See TracChangeset for help on using the changeset viewer.