Changeset 1b20da0 in mainline for kernel/arch/sparc64/src


Ignore:
Timestamp:
2018-02-28T17:52:03Z (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:
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/sparc64/src
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/console.c

    rdf6ded8 r1b20da0  
    5656 * Called on UltraSPARC machines with standard keyboard and framebuffer.
    5757 *
    58  * @param aliases       the "/aliases" OBP node 
     58 * @param aliases       the "/aliases" OBP node
    5959 */
    6060static void standard_console_init(ofw_tree_node_t *aliases)
     
    8989/**
    9090 * Initialize input/output. Auto-detects the type of machine
    91  * and calls the appropriate I/O init routine. 
     91 * and calls the appropriate I/O init routine.
    9292 */
    9393void standalone_sparc64_console_init(void)
  • kernel/arch/sparc64/src/context.S

    rdf6ded8 r1b20da0  
    3232#include <arch/regdef.h>
    3333
    34 .text   
     34.text
    3535
    3636/*
  • kernel/arch/sparc64/src/cpu/sun4u/cpu.c

    rdf6ded8 r1b20da0  
    8686         * Detect processor frequency.
    8787         */
    88         if (is_us() || is_us_iii()) { 
     88        if (is_us() || is_us_iii()) {
    8989                node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
    9090                while (node) {
    9191                        int f = find_cpu_frequency(node);
    92                         if (f != -1) 
     92                        if (f != -1)
    9393                                clock_frequency = (uint32_t) f;
    9494                        node = ofw_tree_find_peer_by_device_type(node, "cpu");
     
    100100                        f = find_cpu_frequency(
    101101                                ofw_tree_find_child(node, "cpu@0"));
    102                         if (f != -1) 
     102                        if (f != -1)
    103103                                clock_frequency = (uint32_t) f;
    104104                        f = find_cpu_frequency(
    105105                                ofw_tree_find_child(node, "cpu@1"));
    106                         if (f != -1) 
     106                        if (f != -1)
    107107                                clock_frequency = (uint32_t) f;
    108108                        node = ofw_tree_find_peer_by_name(node, "cmp");
  • kernel/arch/sparc64/src/drivers/pci.c

    rdf6ded8 r1b20da0  
    7979 *
    8080 * @return              Address of the initialized PCI structure.
    81  */ 
     81 */
    8282pci_t *pci_sabre_init(ofw_tree_node_t *node)
    8383{
     
    121121 *
    122122 * @return              Address of the initialized PCI structure.
    123  */ 
     123 */
    124124pci_t *pci_psycho_init(ofw_tree_node_t *node)
    125125{
  • kernel/arch/sparc64/src/drivers/scr.c

    rdf6ded8 r1b20da0  
    2727 */
    2828
    29 /** @addtogroup sparc64 
     29/** @addtogroup sparc64
    3030 * @{
    3131 */
     
    209209               
    210210                break;
    211         case SCR_FFB:   
     211        case SCR_FFB:
    212212                fb_scanline = 8192;
    213213                visual = VISUAL_BGR_0_8_8_8;
  • kernel/arch/sparc64/src/mm/sun4u/tlb.c

    rdf6ded8 r1b20da0  
    322322                 * Forward the page fault to the address space page fault
    323323                 * handler.
    324                  */             
     324                 */
    325325                as_page_fault(page_16k, PF_ACCESS_WRITE, istate);
    326326        }
     
    330330 *
    331331 * The diag field has been left out in order to make this function more generic
    332  * (there is no diag field in US3 architeture). 
    333  *
    334  * @param i             TLB entry number 
     332 * (there is no diag field in US3 architeture).
     333 *
     334 * @param i             TLB entry number
    335335 * @param t             TLB entry tag
    336  * @param d             TLB entry data 
     336 * @param d             TLB entry data
    337337 */
    338338static void print_tlb_entry(int i, tlb_tag_read_reg_t t, tlb_data_t d)
  • kernel/arch/sparc64/src/mm/sun4v/tlb.c

    rdf6ded8 r1b20da0  
    282282                 * Forward the page fault to the address space page fault
    283283                 * handler.
    284                  */             
     284                 */
    285285                as_page_fault(va, PF_ACCESS_READ, istate);
    286286        }
     
    323323                 * Forward the page fault to the address space page fault
    324324                 * handler.
    325                  */             
     325                 */
    326326                as_page_fault(va, PF_ACCESS_WRITE, istate);
    327327        }
  • kernel/arch/sparc64/src/mm/sun4v/tsb.c

    rdf6ded8 r1b20da0  
    2828 */
    2929
    30 /** @addtogroup sparc64mm       
     30/** @addtogroup sparc64mm
    3131 * @{
    3232 */
     
    8686
    8787        as = t->as;
    88         index = (t->page >> MMU_PAGE_WIDTH) & TSB_ENTRY_MASK; 
     88        index = (t->page >> MMU_PAGE_WIDTH) & TSB_ENTRY_MASK;
    8989       
    9090        tsb = (tsb_entry_t *) PA2KA(as->arch.tsb_description.tsb_base);
  • kernel/arch/sparc64/src/smp/sun4u/ipi.c

    rdf6ded8 r1b20da0  
    2727 */
    2828
    29 /** @addtogroup sparc64 
     29/** @addtogroup sparc64
    3030 * @{
    3131 */
     
    122122                        /*
    123123                         * Prevent deadlock.
    124                          */                     
     124                         */
    125125                        (void) interrupts_enable();
    126126                        delay(20 + (tick_read() & 0xff));
     
    180180 * Interrupts must be disabled.
    181181 *
    182  * @param cpu_id Destination cpu id (index into cpus array). Must not 
     182 * @param cpu_id Destination cpu id (index into cpus array). Must not
    183183 *               be the current cpu.
    184184 * @param ipi    IPI number.
  • kernel/arch/sparc64/src/smp/sun4u/smp.c

    rdf6ded8 r1b20da0  
    2727 */
    2828
    29 /** @addtogroup sparc64 
     29/** @addtogroup sparc64
    3030 * @{
    3131 */
     
    8383 * Wakes up the CPU which is represented by the "node" OFW tree node.
    8484 * If "node" represents the current CPU, calling the function has
    85  * no effect. 
     85 * no effect.
    8686 */
    8787static void wakeup_cpu(ofw_tree_node_t *node)
  • kernel/arch/sparc64/src/smp/sun4u/smp_call.c

    rdf6ded8 r1b20da0  
    4242void arch_smp_call_ipi(unsigned int cpu_id)
    4343{
    44         /* 
     44        /*
    4545         * Required by ipi_unicast_arch(). That functions resolves a potential
    4646         * deadlock should both the destination and source cpus be sending
  • kernel/arch/sparc64/src/smp/sun4v/ipi.c

    rdf6ded8 r1b20da0  
    2727 */
    2828
    29 /** @addtogroup sparc64 
     29/** @addtogroup sparc64
    3030 * @{
    3131 */
  • kernel/arch/sparc64/src/smp/sun4v/smp.c

    rdf6ded8 r1b20da0  
    254254                        exec_unit_assign_error = 1;
    255255                }
    256         }               
     256        }
    257257
    258258        /* save the number of CPUs to a globally accessible variable */
  • kernel/arch/sparc64/src/sun4u/start.S

    rdf6ded8 r1b20da0  
    8888        ! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
    8989        sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
    90         srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5     
     90        srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5
    9191
    9292        /*
     
    118118        wrpr %g1, %lo(trap_table), %tba
    119119
    120         /* 
     120        /*
    121121         * Take over the DMMU by installing locked TTE entry identically
    122122         * mapping the first 4M of memory.
     
    135135        ! demap context 0
    136136        SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS)
    137         stxa %g0, [%g1] ASI_DMMU_DEMAP                 
     137        stxa %g0, [%g1] ASI_DMMU_DEMAP
    138138        membar #Sync
    139139
     
    143143        ! write DTLB tag
    144144        SET_TLB_TAG(g1, MEM_CONTEXT_KERNEL)
    145         stxa %g1, [VA_DMMU_TAG_ACCESS] %asi                     
     145        stxa %g1, [VA_DMMU_TAG_ACCESS] %asi
    146146        membar #Sync
    147147
     
    164164        ! write DTLB data and install the kernel mapping
    165165        SET_TLB_DATA(g1, g2, TTE_L | TTE_W)     ! use non-global mapping
    166         stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG           
     166        stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG
    167167        membar #Sync
    168168
     
    175175        ! write DTLB tag of context 1 (i.e. MEM_CONTEXT_TEMP)
    176176        SET_TLB_TAG(g1, MEM_CONTEXT_TEMP)
    177         stxa %g1, [VA_DMMU_TAG_ACCESS] %asi                     
     177        stxa %g1, [VA_DMMU_TAG_ACCESS] %asi
    178178        membar #Sync
    179179
    180180        ! write DTLB data and install the kernel mapping in context 1
    181181        SET_TLB_DATA(g1, g2, TTE_W)                     ! use non-global mapping
    182         stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG           
     182        stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG
    183183        membar #Sync
    184184       
     
    213213        ! write ITLB data and install the temporary mapping in context 1
    214214        SET_TLB_DATA(g1, g2, 0)                 ! use non-global mapping
    215         stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG           
     215        stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG
    216216        flush %g5
    217217       
     
    223223        ! demap context 0
    224224        SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS)
    225         stxa %g0, [%g1] ASI_IMMU_DEMAP                 
     225        stxa %g0, [%g1] ASI_IMMU_DEMAP
    226226        flush %g5
    227227       
     
    234234        ! write ITLB data and install the permanent kernel mapping in context 0
    235235        SET_TLB_DATA(g1, g2, TTE_L)             ! use non-global mapping
    236         stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG           
     236        stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG
    237237        flush %g5
    238238
     
    242242        ! demap context 1
    243243        SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_PRIMARY)
    244         stxa %g0, [%g1] ASI_IMMU_DEMAP                 
     244        stxa %g0, [%g1] ASI_IMMU_DEMAP
    245245        flush %g5
    246246       
     
    406406 */
    407407
    408 .align 32 
     408.align 32
    409409/*
    410410 * This label is used by the fast_data_access_MMU_miss trap handler.
     
    417417 */
    418418SYMBOL(end_of_identity)
    419         .quad -1 
     419        .quad -1
    420420/*
    421421 * This variable is used by the fast_data_access_MMU_miss trap handler.
  • kernel/arch/sparc64/src/sun4v/md.c

    rdf6ded8 r1b20da0  
    126126 * Returns the value of the integer property of the given node.
    127127 *
    128  * @param 
     128 * @param
    129129 */
    130130bool md_get_integer_property(md_node_t node, const char *key,
    131131        uint64_t *result)
    132132{
    133         element_idx_t idx = node;       
     133        element_idx_t idx = node;
    134134
    135135        while (get_element(idx)->tag != NODE_END) {
     
    149149 * Returns the value of the string property of the given node.
    150150 *
    151  * @param 
     151 * @param
    152152 */
    153153bool md_get_string_property(md_node_t node, const char *key,
     
    278278/**
    279279 * Moves "node" to the node following "node" in the list of all the existing
    280  * nodes of the MD whose name is "name". 
     280 * nodes of the MD whose name is "name".
    281281 */
    282282bool md_next_node(md_node_t *node, const char *name)
  • kernel/arch/sparc64/src/sun4v/start.S

    rdf6ded8 r1b20da0  
    118118        ! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
    119119        sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
    120         srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5     
     120        srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5
    121121
    122122        /*
     
    225225         * Save physmem_base for use by the mm subsystem.
    226226         * %l6 contains starting physical address
    227          */     
     227         */
    228228        sethi %hi(physmem_base), %l4
    229229        stx %l6, [%l4 + %lo(physmem_base)]
  • kernel/arch/sparc64/src/trap/interrupt.c

    rdf6ded8 r1b20da0  
    112112        exc_register(TT_TAG_OVERFLOW,
    113113            "tag_overflow", false,
    114             tag_overflow);     
     114            tag_overflow);
    115115        exc_register(TT_DIVISION_BY_ZERO,
    116116            "division_by_zero", false,
     
    145145            tick_interrupt);
    146146
    147 #ifdef SUN4U 
     147#ifdef SUN4U
    148148        exc_register(TT_INTERRUPT_VECTOR_TRAP,
    149149            "interrupt_vector_trap", true,
     
    159159        exc_register(TT_FAST_DATA_ACCESS_PROTECTION,
    160160            "fast_data_access_protection", true,
    161             fast_data_access_protection);       
     161            fast_data_access_protection);
    162162
    163163#ifdef SUN4V
  • kernel/arch/sparc64/src/trap/sun4u/trap_table.S

    rdf6ded8 r1b20da0  
    6464        mov TT_INSTRUCTION_ACCESS_EXCEPTION, %g2
    6565        clr %g5
    66         PREEMPTIBLE_HANDLER exc_dispatch 
     66        PREEMPTIBLE_HANDLER exc_dispatch
    6767
    6868/* TT = 0x0a, TL = 0, instruction_access_error */
     
    7171        mov TT_INSTRUCTION_ACCESS_ERROR, %g2
    7272        clr %g5
    73         PREEMPTIBLE_HANDLER exc_dispatch 
     73        PREEMPTIBLE_HANDLER exc_dispatch
    7474
    7575/* TT = 0x10, TL = 0, illegal_instruction */
     
    7878        mov TT_ILLEGAL_INSTRUCTION, %g2
    7979        clr %g5
    80         PREEMPTIBLE_HANDLER exc_dispatch 
     80        PREEMPTIBLE_HANDLER exc_dispatch
    8181
    8282/* TT = 0x11, TL = 0, privileged_opcode */
     
    8585        mov TT_PRIVILEGED_OPCODE, %g2
    8686        clr %g5
    87         PREEMPTIBLE_HANDLER exc_dispatch 
     87        PREEMPTIBLE_HANDLER exc_dispatch
    8888
    8989/* TT = 0x12, TL = 0, unimplemented_LDD */
     
    9292        mov TT_UNIMPLEMENTED_LDD, %g2
    9393        clr %g5
    94         PREEMPTIBLE_HANDLER exc_dispatch 
     94        PREEMPTIBLE_HANDLER exc_dispatch
    9595
    9696/* TT = 0x13, TL = 0, unimplemented_STD */
     
    106106        mov TT_FP_DISABLED, %g2
    107107        clr %g5
    108         PREEMPTIBLE_HANDLER exc_dispatch 
     108        PREEMPTIBLE_HANDLER exc_dispatch
    109109
    110110/* TT = 0x21, TL = 0, fb_exception_ieee_754 handler */
     
    168168        mov TT_LDDF_MEM_ADDRESS_NOT_ALIGNED, %g2
    169169        clr %g5
    170         PREEMPTIBLE_HANDLER exc_dispatch 
     170        PREEMPTIBLE_HANDLER exc_dispatch
    171171
    172172/* TT = 0x36, TL = 0, STDF_mem_address_not_aligned */
     
    382382        mov TT_INSTRUCTION_ACCESS_EXCEPTION, %g2
    383383        clr %g5
    384         PREEMPTIBLE_HANDLER exc_dispatch 
     384        PREEMPTIBLE_HANDLER exc_dispatch
    385385
    386386/* TT = 0x0a, TL > 0, instruction_access_error */
     
    489489 * TL1: preemptible trap handler started after a tick interrupt
    490490 * TL2: preemptible trap handler did SAVE
    491  * TL3: spill handler touched the kernel stack 
     491 * TL3: spill handler touched the kernel stack
    492492 * TL4: hardware or software failure
    493493 *
     
    510510         * trap is resolved. However, because we are in the wrong window from the
    511511         * perspective of the MMU trap, we need to synchronize CWP with CWP from TL=0.
    512          */ 
     512         */
    513513        and %g3, TSTATE_CWP_MASK, %g4
    514514        wrpr %g4, 0, %cwp                       ! resynchronize CWP
     
    566566
    567567        /*
    568          * At this moment, we are using the kernel stack 
     568         * At this moment, we are using the kernel stack
    569569         * and have successfully allocated a register window.
    570570         */
     
    585585.else
    586586        ! store the syscall number on the stack as 7th argument
    587         stx %g2, [%sp + STACK_BIAS + ISTATE_OFFSET_ARG6] 
     587        stx %g2, [%sp + STACK_BIAS + ISTATE_OFFSET_ARG6]
    588588.endif
    589589
  • kernel/arch/sparc64/src/trap/sun4v/trap_table.S

    rdf6ded8 r1b20da0  
    6767        mov TT_INSTRUCTION_ACCESS_EXCEPTION, %g2
    6868        clr %g5
    69         PREEMPTIBLE_HANDLER exc_dispatch 
     69        PREEMPTIBLE_HANDLER exc_dispatch
    7070
    7171/* TT = 0x09, TL = 0, instruction_access_mmu_miss */
     
    8686        mov TT_IAE_UNAUTH_ACCESS, %g2
    8787        clr %g5
    88         PREEMPTIBLE_HANDLER exc_dispatch 
     88        PREEMPTIBLE_HANDLER exc_dispatch
    8989
    9090/* TT = 0x0c, TL = 0, IAE_nfo_page */
     
    9393        mov TT_IAE_NFO_PAGE, %g2
    9494        clr %g5
    95         PREEMPTIBLE_HANDLER exc_dispatch 
     95        PREEMPTIBLE_HANDLER exc_dispatch
    9696
    9797/* TT = 0x10, TL = 0, illegal_instruction */
     
    100100        mov TT_ILLEGAL_INSTRUCTION, %g2
    101101        clr %g5
    102         PREEMPTIBLE_HANDLER exc_dispatch 
     102        PREEMPTIBLE_HANDLER exc_dispatch
    103103
    104104/* TT = 0x11, TL = 0, privileged_opcode */
     
    107107        mov TT_PRIVILEGED_OPCODE, %g2
    108108        clr %g5
    109         PREEMPTIBLE_HANDLER exc_dispatch 
     109        PREEMPTIBLE_HANDLER exc_dispatch
    110110
    111111/* TT = 0x12, TL = 0, unimplemented_LDD */
     
    114114        mov TT_UNIMPLEMENTED_LDD, %g2
    115115        clr %g5
    116         PREEMPTIBLE_HANDLER exc_dispatch 
     116        PREEMPTIBLE_HANDLER exc_dispatch
    117117
    118118/* TT = 0x13, TL = 0, unimplemented_STD */
     
    121121        mov TT_UNIMPLEMENTED_STD, %g2
    122122        clr %g5
    123         PREEMPTIBLE_HANDLER exc_dispatch 
     123        PREEMPTIBLE_HANDLER exc_dispatch
    124124
    125125/* TT = 0x14, TL = 0, DAE_invalid_asi */
     
    128128        mov TT_DAE_INVALID_ASI, %g2
    129129        clr %g5
    130         PREEMPTIBLE_HANDLER exc_dispatch 
     130        PREEMPTIBLE_HANDLER exc_dispatch
    131131
    132132/* TT = 0x15, TL = 0, DAE_privilege_violation */
     
    135135        mov TT_DAE_PRIVILEGE_VIOLATION, %g2
    136136        clr %g5
    137         PREEMPTIBLE_HANDLER exc_dispatch 
     137        PREEMPTIBLE_HANDLER exc_dispatch
    138138
    139139/* TT = 0x16, TL = 0, DAE_nc_page */
     
    142142        mov TT_DAE_NC_PAGE, %g2
    143143        clr %g5
    144         PREEMPTIBLE_HANDLER exc_dispatch 
     144        PREEMPTIBLE_HANDLER exc_dispatch
    145145
    146146/* TT = 0x17, TL = 0, DAE_nfo_page */
     
    149149        mov TT_DAE_NFO_PAGE, %g2
    150150        clr %g5
    151         PREEMPTIBLE_HANDLER exc_dispatch 
     151        PREEMPTIBLE_HANDLER exc_dispatch
    152152
    153153/* TT = 0x20, TL = 0, fb_disabled handler */
     
    156156        mov TT_FP_DISABLED, %g2
    157157        clr %g5
    158         PREEMPTIBLE_HANDLER exc_dispatch 
     158        PREEMPTIBLE_HANDLER exc_dispatch
    159159
    160160/* TT = 0x21, TL = 0, fb_exception_ieee_754 handler */
     
    163163        mov TT_FP_EXCEPTION_IEEE_754, %g2
    164164        clr %g5
    165         PREEMPTIBLE_HANDLER exc_dispatch 
     165        PREEMPTIBLE_HANDLER exc_dispatch
    166166
    167167/* TT = 0x22, TL = 0, fb_exception_other handler */
     
    170170        mov TT_FP_EXCEPTION_OTHER, %g2
    171171        clr %g5
    172         PREEMPTIBLE_HANDLER exc_dispatch 
     172        PREEMPTIBLE_HANDLER exc_dispatch
    173173
    174174/* TT = 0x23, TL = 0, tag_overflow */
     
    177177        mov TT_TAG_OVERFLOW, %g2
    178178        clr %g5
    179         PREEMPTIBLE_HANDLER exc_dispatch 
     179        PREEMPTIBLE_HANDLER exc_dispatch
    180180
    181181/* TT = 0x24, TL = 0, clean_window handler */
     
    189189        mov TT_DIVISION_BY_ZERO, %g2
    190190        clr %g5
    191         PREEMPTIBLE_HANDLER exc_dispatch 
     191        PREEMPTIBLE_HANDLER exc_dispatch
    192192
    193193/* TT = 0x30, TL = 0, data_access_exception */
     
    197197        mov TT_DATA_ACCESS_EXCEPTION, %g2
    198198        clr %g5
    199         PREEMPTIBLE_HANDLER exc_dispatch 
     199        PREEMPTIBLE_HANDLER exc_dispatch
    200200
    201201/* TT = 0x31, TL = 0, data_access_mmu_miss */
     
    209209        mov TT_DATA_ACCESS_ERROR, %g2
    210210        clr %g5
    211         PREEMPTIBLE_HANDLER exc_dispatch 
     211        PREEMPTIBLE_HANDLER exc_dispatch
    212212
    213213/* TT = 0x34, TL = 0, mem_address_not_aligned */
     
    216216        mov TT_MEM_ADDRESS_NOT_ALIGNED, %g2
    217217        clr %g5
    218         PREEMPTIBLE_HANDLER exc_dispatch 
     218        PREEMPTIBLE_HANDLER exc_dispatch
    219219
    220220/* TT = 0x35, TL = 0, LDDF_mem_address_not_aligned */
     
    223223        mov TT_LDDF_MEM_ADDRESS_NOT_ALIGNED, %g2
    224224        clr %g5
    225         PREEMPTIBLE_HANDLER exc_dispatch 
     225        PREEMPTIBLE_HANDLER exc_dispatch
    226226
    227227/* TT = 0x36, TL = 0, STDF_mem_address_not_aligned */
     
    230230        mov TT_STDF_MEM_ADDRESS_NOT_ALIGNED, %g2
    231231        clr %g5
    232         PREEMPTIBLE_HANDLER exc_dispatch 
     232        PREEMPTIBLE_HANDLER exc_dispatch
    233233
    234234/* TT = 0x37, TL = 0, privileged_action */
     
    237237        mov TT_PRIVILEGED_ACTION, %g2
    238238        clr %g5
    239         PREEMPTIBLE_HANDLER exc_dispatch 
     239        PREEMPTIBLE_HANDLER exc_dispatch
    240240
    241241/* TT = 0x38, TL = 0, LDQF_mem_address_not_aligned */
     
    244244        mov TT_LDQF_MEM_ADDRESS_NOT_ALIGNED, %g2
    245245        clr %g5
    246         PREEMPTIBLE_HANDLER exc_dispatch 
     246        PREEMPTIBLE_HANDLER exc_dispatch
    247247
    248248/* TT = 0x39, TL = 0, STQF_mem_address_not_aligned */
     
    251251        mov TT_STQF_MEM_ADDRESS_NOT_ALIGNED, %g2
    252252        clr %g5
    253         PREEMPTIBLE_HANDLER exc_dispatch 
     253        PREEMPTIBLE_HANDLER exc_dispatch
    254254
    255255/* TT = 0x41, TL = 0, interrupt_level_1 handler */
     
    378378        mov TT_CPU_MONDO, %g2
    379379        clr %g5
    380         PREEMPTIBLE_HANDLER exc_dispatch 
     380        PREEMPTIBLE_HANDLER exc_dispatch
    381381
    382382/* TT = 0x80, TL = 0, spill_0_normal handler */
     
    437437        mov TT_INSTRUCTION_ACCESS_EXCEPTION, %g2
    438438        clr %g5
    439         PREEMPTIBLE_HANDLER exc_dispatch 
     439        PREEMPTIBLE_HANDLER exc_dispatch
    440440
    441441/* TT = 0x09, TL > 0, instruction_access_mmu_miss */
     
    451451        mov TT_INSTRUCTION_ACCESS_ERROR, %g2
    452452        clr %g5
    453         PREEMPTIBLE_HANDLER exc_dispatch 
     453        PREEMPTIBLE_HANDLER exc_dispatch
    454454
    455455/* TT = 0x0b, TL > 0, IAE_unauth_access */
     
    459459        mov TT_IAE_UNAUTH_ACCESS, %g2
    460460        clr %g5
    461         PREEMPTIBLE_HANDLER exc_dispatch 
     461        PREEMPTIBLE_HANDLER exc_dispatch
    462462
    463463/* TT = 0x0c, TL > 0, IAE_nfo_page */
     
    467467        mov TT_IAE_NFO_PAGE, %g2
    468468        clr %g5
    469         PREEMPTIBLE_HANDLER exc_dispatch 
     469        PREEMPTIBLE_HANDLER exc_dispatch
    470470
    471471/* TT = 0x10, TL > 0, illegal_instruction */
     
    475475        mov TT_ILLEGAL_INSTRUCTION, %g2
    476476        clr %g5
    477         PREEMPTIBLE_HANDLER exc_dispatch 
     477        PREEMPTIBLE_HANDLER exc_dispatch
    478478
    479479/* TT = 0x14, TL > 0, DAE_invalid_asi */
     
    483483        mov TT_DAE_INVALID_ASI, %g2
    484484        clr %g5
    485         PREEMPTIBLE_HANDLER exc_dispatch 
     485        PREEMPTIBLE_HANDLER exc_dispatch
    486486
    487487/* TT = 0x15, TL > 0, DAE_privilege_violation */
     
    491491        mov TT_DAE_PRIVILEGE_VIOLATION, %g2
    492492        clr %g5
    493         PREEMPTIBLE_HANDLER exc_dispatch 
     493        PREEMPTIBLE_HANDLER exc_dispatch
    494494
    495495/* TT = 0x16, TL > 0, DAE_nc_page */
     
    499499        mov TT_DAE_NC_PAGE, %g2
    500500        clr %g5
    501         PREEMPTIBLE_HANDLER exc_dispatch 
     501        PREEMPTIBLE_HANDLER exc_dispatch
    502502
    503503/* TT = 0x17, TL > 0, DAE_nfo_page */
     
    507507        mov TT_DAE_NFO_PAGE, %g2
    508508        clr %g5
    509         PREEMPTIBLE_HANDLER exc_dispatch 
     509        PREEMPTIBLE_HANDLER exc_dispatch
    510510
    511511/* TT = 0x24, TL > 0, clean_window handler */
     
    520520        mov TT_DIVISION_BY_ZERO, %g2
    521521        clr %g5
    522         PREEMPTIBLE_HANDLER exc_dispatch 
     522        PREEMPTIBLE_HANDLER exc_dispatch
    523523
    524524/* TT = 0x30, TL > 0, data_access_exception */
     
    528528        mov TT_DATA_ACCESS_EXCEPTION, %g2
    529529        clr %g5
    530         PREEMPTIBLE_HANDLER exc_dispatch 
     530        PREEMPTIBLE_HANDLER exc_dispatch
    531531
    532532/* TT = 0x31, TL > 0, data_access_mmu_miss */
     
    541541        mov TT_DATA_ACCESS_ERROR, %g2
    542542        clr %g5
    543         PREEMPTIBLE_HANDLER exc_dispatch 
     543        PREEMPTIBLE_HANDLER exc_dispatch
    544544
    545545/* TT = 0x34, TL > 0, mem_address_not_aligned */
     
    549549        mov TT_MEM_ADDRESS_NOT_ALIGNED, %g2
    550550        clr %g5
    551         PREEMPTIBLE_HANDLER exc_dispatch 
     551        PREEMPTIBLE_HANDLER exc_dispatch
    552552
    553553/* TT = 0x68, TL > 0, fast_data_access_MMU_miss */
     
    567567        mov TT_CPU_MONDO, %g2
    568568        clr %g5
    569         PREEMPTIBLE_HANDLER exc_dispatch 
     569        PREEMPTIBLE_HANDLER exc_dispatch
    570570
    571571/* TT = 0x80, TL > 0, spill_0_normal handler */
     
    595595 * Spills the window at CWP + 2 to the kernel stack. This macro is to be
    596596 * used before doing SAVE when the spill trap is undesirable.
    597  * 
     597 *
    598598 * Parameters:
    599599 *      tmpreg1         global register to be used for scratching purposes
     
    608608       
    609609        ! spill to kernel stack
    610         stx %l0, [%sp + STACK_BIAS + L0_OFFSET] 
     610        stx %l0, [%sp + STACK_BIAS + L0_OFFSET]
    611611        stx %l1, [%sp + STACK_BIAS + L1_OFFSET]
    612612        stx %l2, [%sp + STACK_BIAS + L2_OFFSET]
     
    634634 * Fill the window at CWP - 1 from the kernel stack. This macro is to be
    635635 * used before doing RESTORE when the fill trap is undesirable.
    636  * 
     636 *
    637637 * Parameters:
    638638 *      tmpreg1         global register to be used for scratching purposes
     
    689689.else
    690690        ! store the syscall number on the stack as 7th argument
    691         stx %g2, [%sp + STACK_BIAS + ISTATE_OFFSET_ARG6] 
     691        stx %g2, [%sp + STACK_BIAS + ISTATE_OFFSET_ARG6]
    692692.endif
    693693
     
    859859 * Spills the window at CWP + 2 to the userspace window buffer. This macro
    860860 * is to be used before doing SAVE when the spill trap is undesirable.
    861  * 
     861 *
    862862 * Parameters:
    863863 *      tmpreg1         global register to be used for scratching purposes
     
    892892         * trap is resolved. However, because we are in the wrong window from the
    893893         * perspective of the MMU trap, we need to synchronize CWP with CWP from TL=0.
    894          */ 
     894         */
    895895.if NOT(\is_syscall)
    896896        rdpr %tstate, %g3
     
    927927.endif
    928928
    929         mov VA_PRIMARY_CONTEXT_REG, %l0 
     929        mov VA_PRIMARY_CONTEXT_REG, %l0
    930930        stxa %g0, [%l0] ASI_PRIMARY_CONTEXT_REG
    931931        rd %pc, %l0
Note: See TracChangeset for help on using the changeset viewer.