U-boot-1.1.6-2008R1到vdsp5(bf561)的移植记录(18):const

 
  
u-boot-1.1.6-2008R1/cpu/blackfin/traps.c中定义了一个数组:
/* The purpose of this map is to provide a mapping of address<->cplb settings
 * rather than an exact map of what is actually addressable on the part. This
 * map covers all current Blackfin parts. If you try to access an address that
 * is in this map but not actually on the part, you won't get an exception and
 * reboot, you'll get an external hardware addressing error and reboot. Since
 * only the ends matter (you did something wrong and the board reset), the means
 * are largely irrelevant.
 */
struct memory_map {
     uint32_t start, end;
     uint32_t data_flags, inst_flags;
};
const struct memory_map const bfin_memory_map[] = {
     {    /* external memory */
         .start = 0x00000000,
         .end   = 0x20000000,
         .data_flags = SDRAM_DGENERIC,
         .inst_flags = SDRAM_IGENERIC,
     },
     {    /* async banks */
         .start = 0x20000000,
         .end   = 0x30000000,
         .data_flags = SDRAM_EBIU,
         .inst_flags = SDRAM_INON_CHBL,
     },
     {    /* everything on chip */
         .start = 0xE0000000,
         .end   = 0xFFFFFFFF,
         .data_flags = L1_DMEMORY,
         .inst_flags = L1_IMEMORY,
     }
};
很遗憾VDSP不支持
const struct memory_map const bfin_memory_map[] = {
这样的定义,只能修改为:
const struct memory_map bfin_memory_map[] = {
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嵌云阁主

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值