mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Make INITDATA_ATTR work on everything that has INIT_ATTR enabled for code.
Change-Id: If9936bfbbd3bc3eb2a3e3e290701b8517eabfb13
This commit is contained in:
parent
87d3dde15a
commit
b4eec0dd42
11 changed files with 10 additions and 11 deletions
|
|
@ -105,7 +105,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
. = ALIGN(0x4);
|
. = ALIGN(0x4);
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@ SECTIONS
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init*)
|
*(.init*)
|
||||||
*(.initdata*)
|
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} > INIT AT> DRAM
|
} > INIT AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_initstart = .;
|
_initstart = .;
|
||||||
*(.init)
|
*(.init*)
|
||||||
_initend = .;
|
_initend = .;
|
||||||
} AT> DRAM
|
} AT> DRAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -528,7 +528,7 @@ bool dsp_is_busy(const struct dsp_config *dsp)
|
||||||
* Must be done before changing settings for the first time. */
|
* Must be done before changing settings for the first time. */
|
||||||
void INIT_ATTR dsp_init(void)
|
void INIT_ATTR dsp_init(void)
|
||||||
{
|
{
|
||||||
static const uint8_t slot_count[DSP_COUNT] /* INITDATA_ATTR */ =
|
static const uint8_t slot_count[DSP_COUNT] INITDATA_ATTR =
|
||||||
{
|
{
|
||||||
[CODEC_IDX_AUDIO] = DSP_NUM_PROC_STAGES,
|
[CODEC_IDX_AUDIO] = DSP_NUM_PROC_STAGES,
|
||||||
[CODEC_IDX_VOICE] = DSP_VOICE_NUM_PROC_STAGES
|
[CODEC_IDX_VOICE] = DSP_VOICE_NUM_PROC_STAGES
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue