在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
楼主: feng2003

Nios II的Boot过程分析.pdf

[复制链接]
发表于 2009-9-28 11:17:18 | 显示全部楼层

好东西啊,谢谢楼主

看看,最近在玩NIOS,谢谢了~~~~~
发表于 2009-11-1 19:26:58 | 显示全部楼层
谢谢共享,
发表于 2009-11-4 21:47:33 | 显示全部楼层
很好!!!!!!!!!!!!
发表于 2009-11-12 09:44:22 | 显示全部楼层
NIOS软件手册上也有相关的说明,大家也可以学习啊
Normally, your program’s entry point is the function main(). There is an
alternate entry point, alt_main(), that you can use to gain greater
control of the boot sequence. The difference between entering at main()
and entering at alt_main() is the difference between hosted and free-
standing applications.

Boot Sequence for HAL-Based Programs
The HAL provides system initialization code that performs the following
boot sequence:
■ Flushes the instruction and data cache
■ Configures the stack pointer
■ Configures the global pointer register
■ Zero initializes the BSS region using the linker supplied symbols
__bss_start and __bss_end. These are pointers to the beginning
and the end of the BSS region
■ If there is no boot loader present in the system, copies to RAM any
linker section whose run address is in RAM, such as .rwdata,
.rodata, and .exceptions. See “Global Pointer Register” on
page 4–37.
■ Calls alt_main()
The HAL provides a default implementation of the alt_main()
function, which performs the following steps:
■ Calls ALT_OS_INIT() to perform any necessary operating system
specific initialization. For a system that does not include an OS
scheduler, this macro has no effect
■ If you are using the HAL with an operating system, initializes the
alt_fd_list_lock semaphore, which controls access to the HAL
file systems.
■ Initializes the interrupt controller, and enable interrupts
■ Calls the alt_sys_init() function, which initializes all device
drivers and software components in the system. The Nios II IDE
creates and manages the file alt_sys_init.c for each HAL
system library
■ Redirects the C standard I/O channels (stdin, stdout, and
stderr) to use the appropriate devices
■ Calls the C++ constructors, using the _do_ctors() function
■ Register the C++ destructors to be called at system shutdown
■ Calls main()
■ Calls exit(), passing the return code of main() as the input
argument for exit()
alt_main.c, installed with the Nios II EDS, provides this default
implementation. You can find it in <Nios II EDS install
path>/components/altera_hal/HAL/src.
发表于 2009-11-13 11:31:02 | 显示全部楼层
1# feng2003


谢谢
发表于 2010-12-9 11:27:37 | 显示全部楼层
发表于 2010-12-9 14:36:03 | 显示全部楼层
回复 1# feng2003


    看看 还是不错的
发表于 2010-12-13 06:00:10 | 显示全部楼层
thx for this.
发表于 2011-5-26 01:46:54 | 显示全部楼层
回复 1# feng2003

thanks for sharing doc
发表于 2011-5-26 02:28:30 | 显示全部楼层
haodongxi   xiexielouzhu
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-11-6 08:16 , Processed in 0.021750 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表