kolibrios-gitea/kernel/trunk
Ivan Baravy 59315b183d [kernel] Fix reading from empty board buffer (sf63.2)
Syscall 63.2, reading from the board buffer, was overwriting registers
edx and ebp when the buffer was empty. Now it sets eax and ebx according
to the kernel API.

Because of this ancient bug BOARD checks the status of sf63.2 syscall
this way:
        mcall   63, 2
        cmp     ebx, 1
        jne     no_data
        ; when the buffer is empty, ebx is untouched, i.e. still 2, haha
        ; edx and ebp are destroyed, the code is lucky not to use them

By the way, the bug was found using umka tool.

git-svn-id: svn://kolibrios.org@9897 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-01-30 03:33:03 +00:00
..
acpi uefi64kos: Detect last PCI bus, use fastcall macro. 2021-11-01 02:04:30 +00:00
blkdev [KERNEL] Added the "FsAdd" function for drivers on file systems. 2023-01-21 18:07:32 +00:00
boot [KERNEL] Add test framework 2021-11-04 23:52:56 +00:00
bootloader uefi64kos: Fix reporting of file size 2021-11-17 23:17:45 +00:00
bus add 3 constants 2022-01-04 18:51:19 +00:00
core [KERNEL] Added the "FsAdd" function for drivers on file systems. 2023-01-21 18:07:32 +00:00
detect Translate russian comments to english #2 , no code changes 2020-07-14 22:30:33 +00:00
docs sysfuncr.txt: added missing docs for SysFn77.10, SysFn77.11, SysFn77.13 from wiki 2022-06-04 22:48:35 +00:00
fs [KERNEL] Added the "FsAdd" function for drivers on file systems. 2023-01-21 18:07:32 +00:00
gui [KERNEL] Fix resizing cursors for window borders 2022-06-26 18:03:03 +00:00
hid [KERNEL] Fix resizing cursors for window borders 2022-06-26 18:03:03 +00:00
network [KERNEL] Change fragmented packet log 2022-05-15 17:34:08 +00:00
posix [KERNEL] fixed vulnerability (execution of user code in kernel mode) in sysfn 77.10 and sysfn 77.11 2022-10-25 18:20:48 +00:00
sec_loader/trunk
sound small update copyright year in kernel 2022-02-12 17:27:41 +00:00
test [KERNEL][TEST] Use python library instead of custom function 2021-12-03 15:52:30 +00:00
video [KERNEL] Use specific cursors for window borders 2022-06-23 15:18:20 +00:00
asmxygen.py [ASMXYGEN] Conform PEP8 except line import re 2021-12-07 19:35:46 +00:00
bootbios.asm [KERNEL] Add test framework 2021-11-04 23:52:56 +00:00
build.bat replacing TASK DATA.pid with APPDATA.tid 2022-02-06 20:33:29 +00:00
build.sh
const.inc [xfs] Support XFS bigtime feature bit 2023-01-02 00:53:31 +00:00
COPYING.TXT
crc.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
data16.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
data32.inc [KERNEL] Use specific cursors for window borders 2022-06-23 15:18:20 +00:00
data32et.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
data32sp.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
encoding.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
fdo.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
imports.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
init.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
kernel32.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
kernel.asm [kernel] Fix reading from empty board buffer (sf63.2) 2023-01-30 03:33:03 +00:00
kernelsp.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
kglobals.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
macros.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
Makefile
memmap.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
proc32.inc [kernel][doxygen] Documment endp macro 2021-06-29 19:41:20 +00:00
readme-ext-loader.txt Add extended_primary_loader to autobuild. 2020-10-04 16:53:59 +00:00
runtests.py [KERNEL][TEST] use_umka = False by default 2021-12-15 18:07:01 +00:00
struct.inc [kernel][doxygen] Hide utility macros from struct.inc 2021-07-08 16:34:04 +00:00
sys.conf
Tupfile.lua [KERNEL] Generate .fas file for kernel with extended primary loader 2022-04-27 16:23:37 +00:00
unicode.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00
unpacker.inc small update copyright year in kernel 2022-02-12 17:27:41 +00:00