2643 Commits

Author SHA1 Message Date
Ivan Baravy
55d641b0da kernel: Clean up svn-related code and data
* Rearrange sf18.13 version structure to
  + mention git hash and release offset,
  + separate OS release and kernel ABI numbers,
  + include an optional debug tag.
* Update the boot log and the blue screen to print the new fields.
* Update docs.
* No breaking changes.

Resolves #99.
2025-03-17 20:07:46 +01:00
leency
83a8240eb8 GoogleTranslate Jurgen's commit from sysfuncr.txt to sysfuncs.txt
SHA-1: 34d6f8189f81a2479170343cb6a19e74473f683a
git-svn-id: svn://kolibrios.org@9976 a494cfbc-eb01-0410-851d-a64ba20cac60
2025-02-23 03:25:55 +02:00
Ivan Baravy
e633ea8eac Fix extended_primary_loader for native CD boot
When the extended primary loader for CD was introduced in 2008-2009 it
used to load a relatively small secondary loader. Later the secondary
loader was integrated into the kernel, hence the primary loader had to
load the kernel which is 100kB+. The EDD BIOS specification allows to
read less than 0x80 sectors at once using Int 0x13 0x42 service. For a
512-byte sector this is less than 0x10000 bytes which is a 64kB limit.
The same limit of 64kB is reached on a CD with only 0x20 sectors,
because the sector size is 2048 bytes here. This commit changes the
maximum number of sectors that can be read by the loader at once from
0x7f to 0x20, i.e. reading is done in 64kB blocks now.
2025-02-22 20:03:24 +00:00
Ivan Baravy
17eebff188 Fix a kernel crash on a CD, with 512MB RAM
CDDataBuf was considered a free memory. It was then allocated for other
kernel structures what eventually caused the crash.

The bug report: https://www.youtube.com/watch?v=tXMD9_gEUcA
2025-02-09 19:38:30 +00:00
Ivan Baravy
d235c8914c Fix ghost threads in CPU
* kernel: Make sf9 return TSTATE_FREE for invalid slots: 0, >255, free.
* menu: Ignore free slots even if other fields of proc_info look valid.
        Documentation (sysfuncs.txt) clearly states all the other info
        as invalid when slot_state is TSTATE_FREE.
* taskbar: Same as menu.
* cmm/lib/*: Same as menu.
* programs/macros.inc: Add TSTATE_* macros.
2025-02-01 03:32:16 +00:00
Mikhail Frolov
4cfb1a27b5 Krn: Fixed the calling convention for the "load_pe_driver" function 2025-01-19 19:26:48 +05:00
Ivan Baravy
4a166ede82 Another fix for locale names 2024-07-11 09:00:28 +01:00
Ivan Baravy
46e816c366 Fix locale codes for kernel build scripts 2024-07-10 17:42:26 +01:00
Andrew
4f08d0ad8b [Boot] Update for locales
- Fixes for new locale codes.
- Some whitespace clean-up.
2024-06-05 10:00:06 +01:00
Ivan Baravy
b6a0bf7729 Fix autobuild text on the blue boot screen 2024-06-03 04:03:51 +01:00
Ivan Baravy
4dac8068a5 [docs] Replace cyrillic 'с' with latin 'c' in register names
git-svn-id: svn://kolibrios.org@10074 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-06-01 02:17:20 +00:00
Ivan Baravy
d470cce4d8 Fix language codes in the kernel
git-svn-id: svn://kolibrios.org@10073 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-06-01 01:37:18 +00:00
Andrew Dent
f80a8960b0 Fix EN comments in kernel
- Minor tweaks and translations from RU.
- Includes work by @rgimad.

git-svn-id: svn://kolibrios.org@10070 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-30 21:54:55 +00:00
Andrew Dent
48bd92cda2 Fix EN comments in kernel
- Minor tweaks.
- Includes work by @rgimad.

git-svn-id: svn://kolibrios.org@10069 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-30 21:16:43 +00:00
Andrew Dent
09cb62069d Fix EN typos
- Corrections for en_US language.
- Some whitespace sanitation.

git-svn-id: svn://kolibrios.org@10068 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-30 20:45:33 +00:00
Andrew Dent
349dbb6edf Fix EN typos
Small corrections for grammar and fluency [en_US].

git-svn-id: svn://kolibrios.org@10058 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-28 14:15:26 +00:00
Ivan Baravy
85276ce3ee Fix language paths for git autobuild
git-svn-id: svn://kolibrios.org@10056 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-27 18:22:11 +00:00
Doczom
07d896f571 Krn: Added a new driver for the iso9660 file system
Added a new driver for the iso9660 file system. The driver supports the current version of the disk subsystem and is intended for further translation of IDE ATAPI devices to this driver. The basic version of ISO9660 and the Joliet extension are supported.

git-svn-id: svn://kolibrios.org@10053 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-26 15:22:48 +00:00
Andrew Dent
55296eb7c8 Fix EN typo flippy
git-svn-id: svn://kolibrios.org@10052 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-25 21:40:51 +00:00
Andrew Dent
4165acdf83 Remove $Revision$ from kernel file headers
- To better support git, remove SVN dependant `$Revision$` from file headers. This does *not* remove: the use of `__REV__` macro in `boostr.inc` and `kernel.asm`
- Header Copyright notices updated to 2024.
- Minimal white space cleanup (trailing spaces automatically removed).
- Note: `asmxygen.py` has a *large* amount of whitespace cleanup, due to incorrect line endings.

git-svn-id: svn://kolibrios.org@10051 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-22 15:15:14 +00:00
Andrew Dent
51ac7f789b Tweak EN language for boot screen
Minimal changes for improved fluency:
- Tweak language.
- Fix URL link.
- Remove SVN $Revision$.

git-svn-id: svn://kolibrios.org@10050 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-22 10:50:32 +00:00
Andrew Dent
a7816e7613 Consistent use of KolibriOS name
- Ensure consistent naming for brand integrity.

git-svn-id: svn://kolibrios.org@10049 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-22 10:10:18 +00:00
Ivan Baravy
e9e08c56b6 Update Tupfile.lua's for tup-0.8
git-svn-id: svn://kolibrios.org@10042 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-21 14:45:21 +00:00
Doczom
9b1c982736 Krn: Fixed definition of local variables in the "create_cursor" function
git-svn-id: svn://kolibrios.org@10039 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-20 18:05:20 +00:00
Doczom
6fbd7cd2f9 Krn: Fixed the disk size output function
and fixed the "end if" position when compiling extended_primary_loader

git-svn-id: svn://kolibrios.org@10016 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-09 14:47:16 +00:00
Doczom
d8b8010bbd Krn: Fixed the number of functions in the file system drivers
git-svn-id: svn://kolibrios.org@10015 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-09 14:22:13 +00:00
Doczom
566428b0cc Krn: Removed outdated MIDI interface
Delete sysfn 20, 21.1, 26.1 

git-svn-id: svn://kolibrios.org@10010 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-04-08 20:15:57 +00:00
Doczom
6345e58caa Kernel: Deleted support MENUET00 header of executable files;
Updated process_information structure.

git-svn-id: svn://kolibrios.org@10008 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-04-07 16:15:57 +00:00
Ivan Baravy
31193af81e [xfs] Fix lookup of v5 dirs
git-svn-id: svn://kolibrios.org@10007 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-04-01 02:38:53 +00:00
Jurgen
5eb750c289 1. Edit procedure check exception 12 (overflow stack)
2. Edit func 68,24
3. Add proc "control exception"
4. Add subfuncs func 51 (GetPriorityThread, SetPriorityThread,GetCurrentThreadId)
5. Add info in ReferenceFunc(rus)

git-svn-id: svn://kolibrios.org@10002 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-03-23 19:19:24 +00:00
Doczom
6f5f626500 Update documentation, added wirnings for oldated functions
git-svn-id: svn://kolibrios.org@9995 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-03-16 22:49:35 +00:00
Doczom
fe3924b288 fixed bad commit(rev9976) of Jergen
git-svn-id: svn://kolibrios.org@9993 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-03-15 12:11:28 +00:00
Rustem Gimadutdinov (rgimad)
a772f5b96f Change "mov reg, 0" to "xor reg, reg" where it's possible
git-svn-id: svn://kolibrios.org@9977 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-02-17 20:25:06 +00:00
Jurgen
34d6f8189f 1.Add procedure check exception 12 (overflow stack) 2.Add info in reference of function 68,24 (rus) 3.Change max limit size of the load file to 1G, for load big WinApp files. 4.Fix procedure close tcp socket:
When WinApp create/close socket in loop =>  crash core Kolibri

git-svn-id: svn://kolibrios.org@9976 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-02-16 18:07:13 +00:00
Jurgen
a0d93dfb0c Add struct EXCEPT_STACK
git-svn-id: svn://kolibrios.org@9975 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-02-16 06:59:15 +00:00
Jurgen
fe0bd82114 Edit struct APP_HEADER_01_, add line: except_stack_top
git-svn-id: svn://kolibrios.org@9974 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-02-16 06:37:52 +00:00
Ivan Baravy
e1bea992de Revert the length of uglobals buffer (fix r9968)
This is a magic number again, but it is reported to work.

git-svn-id: svn://kolibrios.org@9969 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-16 05:39:27 +00:00
Ivan Baravy
bd4ac33731 kernel, sf9: zero data buffer for empty slots
Now sf9 doesn't read uninitialized memory when called for an empty slot.
Also, applications don't get stale data after sf9 anymore.

git-svn-id: svn://kolibrios.org@9968 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-16 02:44:48 +00:00
Ivan Baravy
7b51a89852 Use process_information structure in the kernel
Copied from the userspace macros.inc

git-svn-id: svn://kolibrios.org@9967 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-15 05:16:31 +00:00
Ivan Baravy
0572b0fbf6 Fix sf9 to ignore slot 0
It used to read uninitialized data at SLOT_BASE[0].

git-svn-id: svn://kolibrios.org@9964 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-14 19:34:21 +00:00
Ivan Baravy
034dd79f43 Switch to the unified (BIOS and UEFI) kernel image
The initial patch by bzt with my minor edits.

git-svn-id: svn://kolibrios.org@9958 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-14 01:39:36 +00:00
Kirill Lipatov (Leency)
d91cb7946f https://board.kolibrios.org/viewtopic.php?p=79329#79912
NTFS fix for sf 70.3 by Pathoswithin (non-tested) => Doczom please check if you can

git-svn-id: svn://kolibrios.org@9953 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-01-12 01:11:26 +00:00
turbocat
bbee219bab [KERNEL] Use PAT if supported. Otherwise MTRR
git-svn-id: svn://kolibrios.org@9950 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-12-26 18:33:21 +00:00
Doczom
b9d43b416f fix bug in sysfn 7
git-svn-id: svn://kolibrios.org@9949 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-10-23 12:53:06 +00:00
Doczom
6643206b73 [KERNEL] fixed bug in sysfn 39.3
git-svn-id: svn://kolibrios.org@9948 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-10-12 21:52:14 +00:00
ace_dent
52ed04f5cc Update docs/README.TXT and rename to CREDITS
- Rename to `CREDITS.TXT` for clarity.
- Improve text of opening paragraph. Thanks to various translators.
- Reformat to use headings, removing excessive whitespace characters (~2.5KiB).
- Sort list of contributors alphabetically; easier to maintain.
- Add missing contributors and remove from `kernel.asm`. Thanks to @rgimad.
- Minor formatting and whitespace cleanup.

git-svn-id: svn://kolibrios.org@9947 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-10-01 21:53:34 +00:00
turbocat
2c2132e24d Fixed typo in "blue screen"
git-svn-id: svn://kolibrios.org@9943 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-09-22 20:38:13 +00:00
turbocat
e4362a1edc Fixed a "blue screen" hang when trying to write a configuration to a read-only device
git-svn-id: svn://kolibrios.org@9942 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-09-22 19:17:33 +00:00
Doczom
69f5ec5ac7 [KERNEL] Graphics subsystem has been redesigned:
- removed the old cursor and the code for its operation
 - minor fixes in other kernel modules
 - new fields have been added to the display_t structure for further refactoring of the graphics subsystem.

git-svn-id: svn://kolibrios.org@9941 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-09-22 16:31:40 +00:00
Kirill Lipatov (Leency)
cc4e120366 Starting Blue screen:
- The next message was improved: "New settings have been applied. Do you want to record them for the future boots? Answer 'yes' only if your booting device is writable." to avoid users saving changes on CD. This is a bug 'cos normally such behaviour must be handeled in the code http://board.kolibrios.org/viewtopic.php?p=80012#p80012
- Hide option "Create blank image" which is outdated now

git-svn-id: svn://kolibrios.org@9938 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-09-13 23:43:36 +00:00