diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-02-10 11:34:15 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-02-10 11:34:15 +0000 |
commit | e1e810183701218be753ce70d131b48255478acf (patch) | |
tree | c44f9de4f7f4c031a4cf6454e841b54993323cf9 /firmware/target/arm/imx31/sdma_script_code.h | |
parent | ca07873607bbba7c8adff6d786b6b88f14ef7650 (diff) | |
download | rockbox-e1e810183701218be753ce70d131b48255478acf.tar.gz rockbox-e1e810183701218be753ce70d131b48255478acf.zip |
Gigabeat S: Place SDMA code load address starting in uninitialized section address and copy it to the plugin buffer since it only needed very early in initialization. Will save about 6K in RAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19963 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/sdma_script_code.h')
-rw-r--r-- | firmware/target/arm/imx31/sdma_script_code.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/sdma_script_code.h b/firmware/target/arm/imx31/sdma_script_code.h index b80c39534b..1e75267a76 100644 --- a/firmware/target/arm/imx31/sdma_script_code.h +++ b/firmware/target/arm/imx31/sdma_script_code.h | |||
@@ -356,7 +356,8 @@ | |||
356 | /*! | 356 | /*! |
357 | * Code download for i.MX system revision = 1.0 | 357 | * Code download for i.MX system revision = 1.0 |
358 | */ | 358 | */ |
359 | static __attribute__((aligned(4))) const short sdma_code_1[RAM_CODE_SIZE_1] = | 359 | static __attribute__((aligned(4), section(".sdmacode"))) |
360 | const short sdma_code_1[RAM_CODE_SIZE_1] = | ||
360 | { | 361 | { |
361 | 0xc0ec, 0x7d59, 0x0970, 0x0111, 0x5111, 0x5ad1, 0x5bd9, 0xc0fe, | 362 | 0xc0ec, 0x7d59, 0x0970, 0x0111, 0x5111, 0x5ad1, 0x5bd9, 0xc0fe, |
362 | 0x5ce1, 0x7d02, 0x0200, 0x9806, 0x08ff, 0x0011, 0x28ff, 0x00bc, | 363 | 0x5ce1, 0x7d02, 0x0200, 0x9806, 0x08ff, 0x0011, 0x28ff, 0x00bc, |
@@ -851,7 +852,8 @@ static __attribute__((aligned(4))) const short sdma_code_1[RAM_CODE_SIZE_1] = | |||
851 | /*! | 852 | /*! |
852 | * Code download for i.MX system revision > 1.0 | 853 | * Code download for i.MX system revision > 1.0 |
853 | */ | 854 | */ |
854 | static __attribute__((aligned(4))) const short sdma_code_2[RAM_CODE_SIZE_2] = | 855 | static __attribute__((aligned(4), section(".sdmacode"))) |
856 | const short sdma_code_2[RAM_CODE_SIZE_2] = | ||
855 | { | 857 | { |
856 | 0x0870, 0x0011, 0x5010, 0xc0ec, 0x7d61, 0x5ac0, 0x5bc8, 0x5ef8, | 858 | 0x0870, 0x0011, 0x5010, 0xc0ec, 0x7d61, 0x5ac0, 0x5bc8, 0x5ef8, |
857 | 0xc0fe, 0x56f8, 0x7d02, 0x0200, 0x9806, 0x6ec3, 0x6d07, 0x5df0, | 859 | 0xc0fe, 0x56f8, 0x7d02, 0x0200, 0x9806, 0x6ec3, 0x6d07, 0x5df0, |