Code: Select all
.section .cp.const4, "cM", @progbits, 4
.set XS1_PORT_4F, 0x40500
.text
.align 2
.globl _start
_start:
ldw r11, XS1_PORT_4F
bu _start
Code: Select all
.section .cp.const4, "cM", @progbits, 4
.set XS1_PORT_4F, 0x40500
.text
.align 2
.globl _start
_start:
ldw r11, XS1_PORT_4F
bu _start
Code: Select all
ldap r11,_cp ; set cp,r11
Thanks. In retrospect this is obvious.segher wrote:You arrange for some symbol to be equal to the starting address of
that section, and then you can use that symbol just like you use _cp.