Changeset 8639685 in rtems


Ignore:
Timestamp:
Oct 28, 2016, 2:05:56 PM (4 years ago)
Author:
Jacob Hansen <jacob.hansen@…>
Branches:
5, master
Children:
bc470d3c
Parents:
1ea73e2b
git-author:
Jacob Hansen <jacob.hansen@…> (10/28/16 14:05:56)
git-committer:
Daniel Hellstrom <daniel@…> (05/14/17 10:32:00)
Message:

sparc: Adjust assembly to improve compability with LLVM

  • All references of %0 changed to %g0
  • 'call label,0' changed to 'call label'. According to the sparc specification call does not take any registers
  • '.seg "text"' changed to '.section ".text"'
  • the synonym stub is replaced with stb
  • the synonym stuh is replaced with sth
Location:
c/src/lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/irq_asm.S

    r1ea73e2b r8639685  
    460460         sethi   %hi(_SPARC_Counter), %o5
    461461        ld       [%o5 + %lo(_SPARC_Counter)], %l4
    462         call     %l4, 0
     462        call     %l4
    463463         nop
    464464        mov      %o0, %o5
     
    543543                                        !   WAS LOADED WHEN ISF WAS SAVED!!!
    544544        mov      %l3, %o0               ! o0 = 1st arg = vector number
    545         call     %g4, 0
     545        call     %g4
    546546#if defined(RTEMS_PROFILING)
    547547         mov     %o5, %l3               ! save interrupt entry instant
     
    561561        bne      profiling_not_outer_most_exit
    562562         nop
    563         call     %l4, 0                 ! Call _SPARC_Counter.counter_read
     563        call     %l4                    ! Call _SPARC_Counter.counter_read
    564564         mov     %g1, %l4               ! Save previous interrupt status
    565565        mov      %o0, %o2               ! o2 = 3rd arg = interrupt exit instant
    566566        mov      %l3, %o1               ! o1 = 2nd arg = interrupt entry instant
    567         call     SYM(_Profiling_Outer_most_interrupt_entry_and_exit), 0
     567        call     SYM(_Profiling_Outer_most_interrupt_entry_and_exit)
    568568         mov     %g6, %o0               ! o0 = 1st arg = per-CPU control
    569569profiling_not_outer_most_exit:
     
    648648        std     %f30, [%sp + FP_FRAME_OFFSET_F3O_F31]
    649649        st      %fsr, [%sp + FP_FRAME_OFFSET_FSR]
    650         call    SYM(_Thread_Do_dispatch), 0
     650        call    SYM(_Thread_Do_dispatch)
    651651         mov    %g6, %o0
    652652
     
    678678#endif
    679679
    680         call    SYM(_Thread_Do_dispatch), 0
     680        call    SYM(_Thread_Do_dispatch)
    681681         mov    %g6, %o0
    682682
  • c/src/lib/libbsp/sparc/shared/start/start.S

    r1ea73e2b r8639685  
    7575#define SOFT_TRAP BAD_TRAP
    7676
    77   .seg    "text"
     77  .section    ".text"
    7878  PUBLIC(start)
    7979  .global start, __bsp_mem_init
     
    353353        nop
    354354
    355         mov     %0, %o0                 ! command line
     355        mov     %g0, %o0                ! command line
    356356        call    SYM(boot_card)          ! does not return
    357357         sub     %sp, 0x60, %sp         ! room for boot_card to save args
  • c/src/lib/libcpu/sparc/access/access.S

    r1ea73e2b r8639685  
    2525
    2626        .align 4
    27         .seg "text"
     27        .section ".text"
    2828        PUBLIC(_ld8)
    2929        PUBLIC(_ld16)
     
    6262SYM(_st8):
    6363        retl
    64          stub %o1, [%o0]
     64         stb %o1, [%o0]
    6565
    6666SYM(_st_be16):
    6767SYM(_st16):
    6868        retl
    69          stuh %o1, [%o0]
     69         sth %o1, [%o0]
    7070
    7171SYM(_st_be32):
  • c/src/lib/libcpu/sparc/reg_win/window.S

    r1ea73e2b r8639685  
    2424#include <rtems/asm.h>
    2525
    26         .seg    "text"
     26        .section    ".text"
    2727        /*
    2828         *  Window overflow trap handler.
  • c/src/lib/libcpu/sparc/syscall/syscall.S

    r1ea73e2b r8639685  
    2020#include "syscall.h"
    2121
    22         .seg    "text"
     22        .section    ".text"
    2323        /*
    2424         *  system call - halt
Note: See TracChangeset for help on using the changeset viewer.