kolibrios-fun/kernel/trunk/bootloader
Ivan Baravy e44770ac18 uefi64kos: Fix stack alignment on function calls.
It is a formal requirement of UEFI spec that the stack is to be aligned
on 16 bytes on all calls to service routines. I changed eficall macro to
fstcall one in my previous commit. Due to differences in macro logic
that change broke UEFI boot on some platforms that do care about stack
alignment. This commit should fix the issue.

git-svn-id: svn://kolibrios.org@9253 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-05 02:17:31 +00:00
..
extended_primary_loader extended_primary_loader: Fix handling of 'resolution' option. 2020-11-11 22:27:30 +00:00
uefi4kos uefi64kos: Fix stack alignment on function calls. 2021-11-05 02:17:31 +00:00
boot_fat12.asm Сlear direction flag for Phoenix BIOS (for correct printing of messages in real mode). 2018-04-02 06:33:43 +00:00
floppy1440.inc Change copyright year in kernel and drivers to 2015. No code changes. 2015-01-08 20:10:22 +00:00
floppy1680.inc Change copyright year in kernel and drivers to 2015. No code changes. 2015-01-08 20:10:22 +00:00
floppy1743.inc Change copyright year in kernel and drivers to 2015. No code changes. 2015-01-08 20:10:22 +00:00
floppy2880.inc Change copyright year in kernel and drivers to 2015. No code changes. 2015-01-08 20:10:22 +00:00
grub4kos.asm Replace 'equ' macros with '=' ones. 2017-12-20 01:07:10 +00:00
readme recode all kernel sources to UTF-8; binary still uses single-byte encoding and isn't changed at all 2013-05-27 22:16:00 +00:00
Tupfile.lua switch build system to Tup 2014-09-12 15:15:23 +00:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;                                                              ;;
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License    ;;
;;                                                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Загрузочный сектор для ОС Колибри (FAT12, дискета)

- Описание
  Позволяет загружать KERNEL.MNT с дискет/образов
  объёмом 1.44M, 1.68M, 1.72M и 2.88M
  Для выбора объёма диска, для которого надо собрать
  загрузочный сектор, необходимо в файле boot_fat12.asm
  раскомментировать строку вида:
     include 'floppy????.inc'
  для необходимого объёма диска. Доступные варианты:
  floppy1440.inc,
  floppy1680.inc,
  floppy1743.inc и floppy2880.inc 

- Сборка
  fasm boot_fat12.asm

- Для записи загрузочного сектора на диск/образ под Linux
  можно воспользоваться следующей командой:
  dd if=boot_fat12.bin of=288.img bs=512 count=1 conv=notrunc

---------------------------------------------------------------------

Floppy FAT12 boot sector for KolibriOS.

- Description
   Allows booting KERNEL.MNT floppies/images
   with volumes of 1.44M, 1.68M, 1.72M and 2.88M
   To select the volume of the disk, which should gather
   boot sector, it was necessary in file boot_fat12.asm
   uncomment line:
      include 'floppy????. inc'
   for the necessary disk volume. Available options is:
   floppy1440.inc,
   floppy1680.inc,
   floppy1743.inc and floppy2880.inc

- Compile
  fasm boot_fat12.asm

- To write boot sector to the floppy/image under Linux
  you can use the following command:
  dd if=boot_fat12.bin of=288.img bs=512 count=1 conv=notrunc