Tag: omap

Hello world,裸机Beagleboard

我正试图在我的Beagleboard-xm rev上运行一个’hello world’类型的程序。 C,通过从程序puts调用C puts函数。 到目前为止,我一直在使用它作为参考: http : //wiki.osdev.org/ARM_Beagleboard 这是我到目前为止所拥有的,但没有输出。 你好ç volatile unsigned int * const UART3DR = (unsigned int *)0x49020000; void puts(const char *s) { while(*s != ‘\0’) { *UART3DR = (unsigned int)(*s); s++; } } void hello() { puts(“Hello, Beagleboard!\n”); } boot.asm .global start start: ldr sp, =stack_bottom bl hello b . linker.ld […]

对齐和未对齐的内存访问?

对齐和未对齐的内存访问有什么区别? 我在TMS320C64x DSP上工作,我想使用内部函数(汇编指令的C函数),它有 ushort & _amem2(void *ptr); ushort & _mem2(void *ptr); 其中_amem2执行2字节的对齐访问,而_mem2执行未对齐访问。 我什么时候应该使用哪个?