Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM9 code should be separated from ARM11 #1

Closed
173210 opened this issue Mar 12, 2015 · 1 comment
Closed

ARM9 code should be separated from ARM11 #1

173210 opened this issue Mar 12, 2015 · 1 comment
Assignees
Labels

Comments

@173210
Copy link
Collaborator

173210 commented Mar 12, 2015

They have some differences which makes impossible to write into the same source file:

  • They have different memory spaces. For example, if you tried to call printf from ARM9, it will crash.
  • They have different instructions. The difference is a little, but it can be a fatal problem.

How to fix it:

  • Write ARM9 code in another file, and compile with "-march=armv5te -mcpu=arm946e-s" instead of "-march=armv6k -mtune=mpcore."
  • Use a linker script for ARM9
  • Use objcopy to make ARM9 object file to load.
arm-none-eabi-objcopy -S -O binary arm9.elf arm9.bin
arm-none-eabi-objcopy -I binary -O elf32-little arm9.bin arm9.o
@173210
Copy link
Collaborator Author

173210 commented Mar 13, 2015

ARM9 code has removed from oska.c by commit 4766350.

@173210 173210 closed this as completed Mar 13, 2015
@173210 173210 added the bug label Mar 13, 2015
@173210 173210 self-assigned this Mar 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant