Where is the BIOS code entry point of the fs44b0x board of Yilong? How to search?

Source: Internet
Author: User
This BIOS CodeIt consists of three assembly files and a bunch of C files. ProgramWe only need to find which source file contains the main function and it will be OK. How can we find the BIOS code?

First, the entry point should be in the Assembly file. To run a C language program, you must use the assembly to prepare the stack, entry parameters, and other environments. Otherwise, the program cannot run.

After studying the project's MCP file, we found that in the settings (debugrel_bin settings) of the project, there is such a link parameter in the arm linker item:-first vector. O (reset). This parameter indicates the vector. the reset section of O is placed at the beginning of the entire image. In this way, the first executed command is the first line of the reset assembly code, which is OK, the original entry point is vector. s reset this code segment, and then look back at the vector. the reset code in S confirms this point:

; **************************************** **************
Area reset, code, readonly

Entry

Export _ entry
_ Entry
Resetentry
B sys_rst_handler
B udf_ins_handler
B swi_svc_handler
B ins_abt_handler
B dat_abt_handler
B.
B irq_svc_handler
B fiq_svc_handler

; **************************************** **************

The above also shows that if you want to reset, resetentry will also start from here.

I think the method for viewing the entry points of the Code is the same even if I change the block board. Check the compilation/link options.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.