diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-18 17:33:51 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-18 17:33:51 +0000 |
commit | fd715fa95cc6bdd57f558cdbfc43bc768ec9645b (patch) | |
tree | c9e6cb9281bca93cb5b66762ba5b373fe11fd7bc /bootloader/sansa_as3525.c | |
parent | 6e5330f663a949e9a3ceab0ddb72e12491e0aa21 (diff) | |
download | rockbox-fd715fa95cc6bdd57f558cdbfc43bc768ec9645b.tar.gz rockbox-fd715fa95cc6bdd57f558cdbfc43bc768ec9645b.zip |
as3525*: enable MMU in bootloader
Reserve 1MB of DRAM for loading rockbox and use the rest as BSS
Write sdram setup in assembler and move it to a separate file, together
with MMU init code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/sansa_as3525.c')
-rw-r--r-- | bootloader/sansa_as3525.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index 9906991bb4..3eb6159800 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c | |||
@@ -122,11 +122,10 @@ void main(void) | |||
122 | if(ret < 0) | 122 | if(ret < 0) |
123 | error(EBOOTFILE, ret); | 123 | error(EBOOTFILE, ret); |
124 | 124 | ||
125 | disable_irq(); /* disable irq until we have copied the new vectors */ | ||
126 | |||
127 | if (ret == EOK) | 125 | if (ret == EOK) |
128 | { | 126 | { |
129 | kernel_entry = (void*) loadbuffer; | 127 | kernel_entry = (void*) loadbuffer; |
128 | cpucache_invalidate(); | ||
130 | printf("Executing"); | 129 | printf("Executing"); |
131 | kernel_entry(); | 130 | kernel_entry(); |
132 | printf("ERR: Failed to boot"); | 131 | printf("ERR: Failed to boot"); |