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 THIRD STAGE<br />

This macro is used to generate <strong>the</strong> generic third stage used to boot <strong>the</strong> Operating System<br />

from diskettes. The %INSTALLA nON macro allows one diskette, which contains only<br />

<strong>the</strong> Operating System boot file and <strong>the</strong> third stage to be used to load <strong>the</strong> system from<br />

diskette into memory. In entering <strong>the</strong> monitor, it allows a second diskette, which contains<br />

<strong>the</strong> necessary system commands, to be used as <strong>the</strong> system device when <strong>the</strong> system is<br />

initialized.<br />

4.3.10 %END Macro<br />

The %END macro is required at <strong>the</strong> end of <strong>the</strong> BS3.A86, BS3MB2.A86, BG3.A86, and<br />

BR3.A86 files. The syntax of this macro is as follows:<br />

%END<br />

There are no parameters associated with <strong>the</strong> %END macro.<br />

4.3.11 User-Supplied Drivers<br />

If you want to use <strong>the</strong> device-specific third stage to load your system from a device o<strong>the</strong>r<br />

than one for which Intel supplies a third-stage driver, you must write your own device<br />

driver procedures that <strong>the</strong> third stage will call. Chapter 6 describes how to do this. In<br />

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 procedure, <strong>the</strong> device read procedure,<br />

and <strong>the</strong> driver's data segment in a %DEVICE macro in <strong>the</strong> BS3.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. You will probably use <strong>the</strong> same configuration<br />

file for both <strong>the</strong> first- and third-stage drivers.<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 />

Bootstrap Loader 4-15

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

Saved successfully!

Ooh no, something went wrong!