Changeset 9b2ef07f in rtems


Ignore:
Timestamp:
Jun 22, 2018, 11:30:21 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7c3b0df1
Parents:
b0ee789
git-author:
Sebastian Huber <sebastian.huber@…> (06/22/18 11:30:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:18)
Message:

bsp/riscv: Load global pointer

Update #3433.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/riscv/riscv/start/start.S

    rb0ee789 r9b2ef07f  
    4747TYPE_FUNC(_start)
    4848SYM(_start):
     49        /* Load global pointer */
     50        .option push
     51        .option norelax
     52        la      gp, __global_pointer$
     53        .option pop
     54
    4955        la      t0, ISR_Handler
    5056        csrw    mtvec, t0
  • cpukit/score/cpu/riscv/riscv-context-switch.S

    rb0ee789 r9b2ef07f  
    5252        SREG    x1, (1 * CPU_SIZEOF_POINTER)(a0)
    5353        SREG    x2, (2 * CPU_SIZEOF_POINTER)(a0)
    54         SREG    x3, (3 * CPU_SIZEOF_POINTER)(a0)
    5554        SREG    x4, (4 * CPU_SIZEOF_POINTER)(a0)
    5655        SREG    x5, (5 * CPU_SIZEOF_POINTER)(a0)
     
    8685        LREG    x1, (1 * CPU_SIZEOF_POINTER)(a1)
    8786        LREG    x2, (2 * CPU_SIZEOF_POINTER)(a1)
    88         LREG    x3, (3 * CPU_SIZEOF_POINTER)(a1)
    8987        LREG    x4, (4 * CPU_SIZEOF_POINTER)(a1)
    9088        LREG    x5, (5 * CPU_SIZEOF_POINTER)(a1)
Note: See TracChangeset for help on using the changeset viewer.