reactos/boot/freeldr/freeldr/include
Hermès Bélusca-Maïto d05be0da3f
[FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes.
CORE-9023

- During loading and initialization of the list of operating systems
  available in freeldr.ini, convert any legacy operating system entry
  encountered -- they are like those in NTLDR's boot.ini file, i.e.:

    ArcOsLoadPartition="LoadIdentifier" /List /of /Options

  into a new operating system INI entry, like those used by default in
  FreeLoader. This allows us to avoid treating this corner-case later in
  different parts of the code. Also, the "BootType" value is now
  determined there, only once.

- Convert the OS loaders entry-points to ARC-compatible ones, following
  the "Advanced RISC Computing Specification, Version 1.2" specification
  https://www.netbsd.org/docs/Hardware/Machines/ARC/riscspec.pdf

- Introduce helpers for retrieving options values from the argument vector
  in a simple way.

- Simplify LoadOperatingSystem(), since now the "BootType" value has
  been determined once while loading the list of OSes (see above) and
  is well-defined there. Use the BuildArgvForOsLoader() helper to build
  the ARC-compatible argument vector from the corresponding INI settings
  for the selected operating system entry, and use it when calling the
  corresponding OS loader.

- In the OS loaders, since we can now directly read the settings from
  the argument vector (instead of using INI settings), we can avoid
  using a bunch of fixed-size string buffers, and avoid potentially
  failing IniOpenSection() calls as well.

- Simplify code in the Linux loader (and the RemoveQuotes() function).

- Add UiShowMessageBoxesInArgv() that acts on the "MessageBox=" settings
  passed through the argument vector (equivalent to
  UiShowMessageBoxesInSection() ).

- Use string-safe functions where needed (copy/concatenation/printf on
  fixed-size buffers).
2019-08-06 23:40:05 +02:00
..
arch [FREELDR] Implement proper partition type detection and handling (#1762) 2019-07-29 14:25:54 +02:00
fs [FREELDR][BTRFS] Implemented BTRFS support in Free Loader. Now it supports case-insensitive path lookup, symlink folowing and reading uncompressed files. 2018-08-20 08:26:56 +02:00
ui
arcemul.h
arcname.h
arcsupp.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
bytesex.h
cache.h
cmdline.h
comm.h
conversion.h
custom.h
debug.h
disk.h [FREELDR] Implement proper partition type detection and handling (#1762) 2019-07-29 14:25:54 +02:00
freeldr.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
fs.h
inffile.h
inifile.h [FREELDR] Add an INI helper that allows modifying an existing setting's value in memory. 2019-08-06 23:39:53 +02:00
keycodes.h
linux.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
machine.h [FREELDR] Abstract VGA BIOS specific code (#1736) 2019-07-18 23:09:59 +02:00
miscboot.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
mm.h [FREELDR] Introduce a MSVC "linker script" file that centralizes the commands for defining section-limit symbols, and the ordering and merging of PE sections, and the necessary CMake code to use it. (#1224) 2019-01-27 00:51:25 +01:00
multiboot.h
ntoskrnl.h
of.h
options.h
oslist.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
ramdisk.h
ui.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00
ver.h [FREELDR] Minor code formatting; constify some non-mutable data. 2019-01-06 18:42:01 +01:00
video.h
winldr.h [FREELDR] Some ARC-spec compatibility refactoring + simplifications & fixes. 2019-08-06 23:40:05 +02:00