aboutsummaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:22:50 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit0d12f0c88b04547349424903548aa649d2a00780 (patch)
treef9655af8110411d5f7b7600bac4e53b6ba95bacb /asm
parent8d49ff5356f0aadf84e54d3ced04632f0d748436 (diff)
downloadskiboot-0d12f0c88b04547349424903548aa649d2a00780.zip
skiboot-0d12f0c88b04547349424903548aa649d2a00780.tar.gz
skiboot-0d12f0c88b04547349424903548aa649d2a00780.tar.bz2
naca: move naca definition from asm to C
This results in the same layout and location of the naca and hv data structures. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/asm-offsets.c2
-rw-r--r--asm/head.S50
2 files changed, 0 insertions, 52 deletions
diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c
index e458405..61a25ca 100644
--- a/asm/asm-offsets.c
+++ b/asm/asm-offsets.c
@@ -25,8 +25,6 @@ int main(void);
int main(void)
{
- OFFSET(SPIRA_ACTUAL_SIZE, spira, reserved);
-
OFFSET(CPUTHREAD_PIR, cpu_thread, pir);
OFFSET(CPUTHREAD_SAVE_R1, cpu_thread, save_r1);
OFFSET(CPUTHREAD_STATE, cpu_thread, state);
diff --git a/asm/head.S b/asm/head.S
index e59f638..b38cc87 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -810,56 +810,6 @@ enter_nap:
bne 1b
nap
b .
-/*
- *
- * NACA structure, accessed by the FPS to find the SPIRA
- *
- */
- . = 0x4000
-.global naca
-naca:
- .llong spirah /* 0x0000 : SPIRA-H */
- .llong 0 /* 0x0008 : Reserved */
- .llong 0 /* 0x0010 : Reserved */
- .llong hv_release_data /* 0x0018 : HV release data */
- .llong 0 /* 0x0020 : Reserved */
- .llong 0 /* 0x0028 : Reserved */
- .llong spira /* 0x0030 : SP Interface Root */
- .llong hv_lid_load_table /* 0x0038 : LID load table */
- .llong 0 /* 0x0040 : Reserved */
- .space 68
- .long 0 /* 0x008c : Reserved */
- .space 16
- .long SPIRA_ACTUAL_SIZE /* 0x00a0 : Actual size of SPIRA */
- .space 28
- .llong 0 /* 0x00c0 : resident module loadmap */
- .space 136
- .llong 0 /* 0x0150 : reserved */
- .space 40
- .llong 0 /* 0x0180 : reserved */
- .space 36
- .long 0 /* 0x01ac : control flags */
- .byte 0 /* 0x01b0 : reserved */
- .space 4
- .byte 0 /* 0x01b5 : default state for SW attn */
- .space 1
- .byte 0x01 /* 0x01b7 : PCIA format */
- .llong hdat_entry /* 0x01b8 : Primary thread entry */
- .llong hdat_entry /* 0x01c0 : Secondary thread entry */
- .space 0xe38
-
- .balign 0x10
-hv_release_data:
- .space 58
- .llong 0x666 /* VRM ? */
-
- .balign 0x10
-hv_lid_load_table:
- .long 0x10
- .long 0x10
- .long 0
- .long 0
-
/*
*