|
On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTTarget-32 Programming Manual
RTTarget-32 Reference Manual
Introduction
RTTarget-32 Configuration
Screen I/O
Interrupt Handling
Port I/O
System Functions
Program Loading
Function RTLoadRTBFile
Function RTRunProgram
Function RTBootRM and RTBootPM
Function RTDLLThreadEvent
Function RTMakeBootDisk
Function RTRestoreBootSector
Function RTSetBootParams
Memory Mapping and Management
Real-Time Clock and CMOS RAM
Keyboard
Mouse and Touch Screen Driver
Parallel Port Printer
Serial Port I/O
PCI BIOS
Plug-and-Play BIOS
PC Cards (PCMCIA)
MetaWINDOW Initialization
Run-Time System Support
System Management BIOS (SMBIOS)
Advanced Programmable Interrupt Controller (APIC)
Multiprocessor Management
Spinlocks
Advanced Configuration and Power Interface (ACPI) Tables
RTVmf-32
RTRth-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
|
Function RTRestoreBootSector
Function RTRestoreBootSector can restore a previously saved boot sector on an RTTarget-32 boot disk:
int RTRestoreBootSector(char LogicalDrive);
RTRestoreBootSector requires On Time's embedded file system RTFiles-32.
ParametersLogicalDriveSpecifies the logical drive letter of the drive containing the RTTarget-32 boot disk.
return valueCan be one of the following:
| Value |
Meaning |
| RT_BDISK_SUCCESS |
The boot image was restored successfully. |
| RT_BDISK_NO_BOOT_CODE |
File BOOTSECT.RTT was not found or is unreadable. |
| RT_BDISK_ERROR_OPEN_DEVICE |
RTFiles-32 reported an error on the attempt to open a drive file for the target drive. |
| RT_BDISK_ERROR_WRITE_BOOT_SECTOR |
RTRestoreBootSector was unable to write the new boot sector to disk. |
This function will only succeed if file BOOTSECT.RTT is present on the target drive. This file is created by function RTMakeBootDisk or RTTarget-32 command line utility BootDisk if a non-RTTarget-32 boot sector is found.
Function RTMakeBootDisk
Function RTSetBootParams
|