31.01.2013 Views

using the bootstrap loader

using the bootstrap loader

using the bootstrap loader

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONFIGURING THE FIRST STAGE<br />

3.4.11 User-Supplied Drivers<br />

If you want to <strong>bootstrap</strong> load your system from a device o<strong>the</strong>r than one for which Intel<br />

supplies a first stage device driver, you must write your own device initialization and device<br />

read device driver procedures that <strong>the</strong> first stage will call. Chapter 5 describes how to do<br />

this. In addition, take <strong>the</strong> following actions to add <strong>the</strong> procedures to <strong>the</strong> Bootstrap Loader:<br />

• Specify <strong>the</strong> names of <strong>the</strong> device initialization and device read procedures in a<br />

%DEVICE macro in <strong>the</strong> BS1.A86 or BSIMB2.A86 file.<br />

• If <strong>the</strong>re are configurable parameters associated with your device (such as base<br />

addresses or wakeup ports), you might want to create your own configuration macro<br />

and include it in a special configuration file, just like <strong>the</strong> Intel devices do. Chapter 5<br />

describes how to set up such a macro.<br />

• Assemble your device initialization procedure, your device read procedure, and your<br />

configuration file (if you have one), and link <strong>the</strong> resulting object code to <strong>the</strong> rest of <strong>the</strong><br />

Bootstrap Loader object files and libraries.<br />

3-44 Bootstrap Loader

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!