summaryrefslogtreecommitdiff
path: root/firmware/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/buffer.c')
-rw-r--r--firmware/buffer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/buffer.c b/firmware/buffer.c
index 2168087bd9..e0496fe149 100644
--- a/firmware/buffer.c
+++ b/firmware/buffer.c
@@ -31,7 +31,7 @@
31 31
32/* defined in linker script */ 32/* defined in linker script */
33#if (CONFIG_PLATFORM & PLATFORM_NATIVE) 33#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
34#if defined(IPOD_VIDEO) 34#if defined(IPOD_VIDEO) && !defined(BOOTLOADER)
35extern unsigned char *audiobufend_lds[]; 35extern unsigned char *audiobufend_lds[];
36unsigned char *audiobufend; 36unsigned char *audiobufend;
37#else /* !IPOD_VIDEO */ 37#else /* !IPOD_VIDEO */
@@ -68,8 +68,8 @@ void buffer_init(void)
68{ 68{
69 /* 32-bit aligned */ 69 /* 32-bit aligned */
70 audiobuf = (void *)(((unsigned long)audiobuffer + 3) & ~3); 70 audiobuf = (void *)(((unsigned long)audiobuffer + 3) & ~3);
71 71
72#if defined(IPOD_VIDEO) 72#if defined(IPOD_VIDEO) && !defined(BOOTLOADER) && !defined(SIMULATOR)
73 audiobufend=(unsigned char *)audiobufend_lds; 73 audiobufend=(unsigned char *)audiobufend_lds;
74 if(MEMORYSIZE==64 && probed_ramsize!=64) 74 if(MEMORYSIZE==64 && probed_ramsize!=64)
75 { 75 {
@@ -92,7 +92,6 @@ static volatile int lock;
92 * Note that this does not modify the buffer position (buffer_release_buffer() 92 * Note that this does not modify the buffer position (buffer_release_buffer()
93 * does), so call this if you want to aquire temporary memory 93 * does), so call this if you want to aquire temporary memory
94 **/ 94 **/
95#define _ALIGN (sizeof(char*))
96void *buffer_get_buffer(size_t *size) 95void *buffer_get_buffer(size_t *size)
97{ 96{
98 if (lock) 97 if (lock)