Windows 6.0 kitl cannot use dm900 NIC Driver modification records

Source: Internet
Author: User

Reason for modification:

Because both eboot and kitl call the dm9000dbg_init function at the same time, when eboot is removed, the address is not mapped. When the image is loaded, the address is mapped. However, dm9000dbg_init is not mapped. The direct consequence of this operation is that kitl immediately crashes when the access address is unavailable (0x15000000.

However, another problem is raised, that is, when eboot is started, the mapped address is used, accessing the mapped address in eboot will also crash (because MMU is not available ).

Finally, we found a solution that is better than the following:

 

When compiling eboot, use the followingCode:

 

Dm9000dbg_init

{

......

// Add ed by Peng
/Oalpatova (uint32) 0x15000000, false );
// Oalpatova (uint32) 0x15000000 + 0x400, false );

// Mask by Peng
// Give the index and data port address
Dwindexportaddress = 0 x15000000;
Dwdataportaddress = 0x15000000 + 0x400;

.......

}

Use the following code to compile the kernel:

Dm9000dbg_init

{

......

// Add ed by Peng
Dwindexportaddress = oalpatova (uint32) 0x15000000, false );
Dwdataportaddress = oalpatova (uint32) 0x15000000 + 0x400, false );

// Mask by Peng
// Give the index and data port address
// Dwindexportaddress = 0x15000000;
// Dwdataportaddress = 0x15000000 + 0x400;

.......

}

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.