Commit Graph

2582 Commits

Author SHA1 Message Date
0a2a7aa344 Tests: Fix testing kernel build
The test system used a custom command to build the testing kernel.
Make it use the tup system.



git-svn-id: svn://kolibrios.org@9918 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-06-17 20:07:12 +00:00
Doczom
cd441e7929 [KERNEL]: Replaced magic numbers with constants and cleaned code
git-svn-id: svn://kolibrios.org@9917 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-06-17 18:40:54 +00:00
Doczom
7028e04565 [KERNEL] cleaned code and added description of some functions
git-svn-id: svn://kolibrios.org@9911 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-04-09 18:19:13 +00:00
Doczom
cf0e9867b0 [KERNEL] updated local labels in functions and other small changes
git-svn-id: svn://kolibrios.org@9910 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-04-08 21:24:05 +00:00
Doczom
dd33210115 [KERNEL]: Replaced magic numbers with constants:
PAGE_SIZE, -PAGE_SIZE, PAGE_SIZE-1

git-svn-id: svn://kolibrios.org@9900 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-02-14 23:26:59 +00:00
aae65fd398 Unhardcode some PAGE_SIZE related numbers
4096 is PAGE_SIZE
not 4095 is -PAGE_SIZE
etc

git-svn-id: svn://kolibrios.org@9899 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-02-12 21:37:30 +00:00
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
Doczom
2160c0e6f7 [KERNEL] Added the "FsAdd" function for drivers on file systems.
TODO: added functions for lock\unlock partition and read\write sectors for user programs 

git-svn-id: svn://kolibrios.org@9894 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-01-21 18:07:32 +00:00
679a138dd7 [xfs] Fix a file lookup bug in btree dirs
Literally, an off-by-one error.

git-svn-id: svn://kolibrios.org@9890 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-01-02 00:58:36 +00:00
06d05066a3 [xfs] Support XFS nrext64 feature bit
This feature is _not_ enabled by default by mkfs.xfs at the moment.
That said, make KolibriOS ready for the future. By the way, fix two
bugs in support of XFSv5 disk format.

git-svn-id: svn://kolibrios.org@9889 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-01-02 00:55:53 +00:00
df7f78788c [xfs] Support XFS bigtime feature bit
Current version of mkfs.xfs enables this feature by default.
Now KolibriOS can read such partitions too.

git-svn-id: svn://kolibrios.org@9888 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-01-02 00:53:31 +00:00
Doczom
b2734e40fd [KERNEL] fixed vulnerability (execution of user code in kernel mode) in sysfn 77.10 and sysfn 77.11
git-svn-id: svn://kolibrios.org@9884 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-10-25 18:20:48 +00:00
Doczom
729487fd7a disabling the SRV.srv_proc check to zero
git-svn-id: svn://kolibrios.org@9872 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-08-23 19:25:18 +00:00
Doczom
6dc1dec037 fix futex freezes
git-svn-id: svn://kolibrios.org@9871 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-08-23 19:18:13 +00:00
Doczom
e25f14c9ba fixing kernel breakage when futex freezes
git-svn-id: svn://kolibrios.org@9869 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-08-10 11:57:08 +00:00
f717a55cc1 [KERNEL] Fix resizing cursors for window borders
git-svn-id: svn://kolibrios.org@9850 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-26 18:03:03 +00:00
d77dd5decc [KERNEL] Use specific cursors for window borders
git-svn-id: svn://kolibrios.org@9848 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-23 15:18:20 +00:00
turbocat
1865c30de8 [KERNEL]: Remove unused get_curr_task and replace with get_curr_slot
git-svn-id: svn://kolibrios.org@9832 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-06 21:51:08 +00:00
a9d195b964 Rename fields in SYSCALL_STACK struct: _eax -> eax, etc
git-svn-id: svn://kolibrios.org@9831 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-05 14:41:51 +00:00
vitalkrilov
c48822e03e sysfuncr.txt: added missing docs for SysFn77.10, SysFn77.11, SysFn77.13 from wiki
ksys.h:
- libc.obj's file synced with newlib's (r9788)
- added scancodes enum
- added wrappers for SysFn66.4 and SysFn66.5 (sys. hotkeys)
- added wrappers for SysFn77.0 -- SysFn77.3 (futexes)

git-svn-id: svn://kolibrios.org@9829 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-04 22:48:35 +00:00
Doczom
4b862c1c0b KERNEL: reducing the use of current_slot_idx
git-svn-id: svn://kolibrios.org@9828 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-06-03 23:34:04 +00:00
aa4154894c [kernel] Add is_string_userspace func, like is_region_userspace
git-svn-id: svn://kolibrios.org@9823 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-31 07:27:00 +00:00
3111bdaa18 Sync language names and IDs for @taskbar, kernel and docs
git-svn-id: svn://kolibrios.org@9822 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-29 19:36:19 +00:00
824bf97e3c [KERNEL] Change fragmented packet log
git-svn-id: svn://kolibrios.org@9817 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-15 17:34:08 +00:00
cac3f92e93 [KERNEL] Update kernel images
git-svn-id: svn://kolibrios.org@9816 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-15 12:41:34 +00:00
7218749f8a [KERNEL] Change fragmented packet log
git-svn-id: svn://kolibrios.org@9815 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-15 12:36:21 +00:00
607e199769 [KERNEL] Use stack to save EDI and fix stack and EDI state on packet drop
git-svn-id: svn://kolibrios.org@9814 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-15 12:07:53 +00:00
vitalkrilov
5f43399ad2 kernel: fixed bug with loading DEVICES.DAT (appeared since r9756)
git-svn-id: svn://kolibrios.org@9813 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-11 21:18:56 +00:00
908aa98953 [KERNEL] Temporally drop fragmented packets
git-svn-id: svn://kolibrios.org@9809 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-08 14:46:34 +00:00
68d6fe5255 [KERNEL] Attempt to fix unexpected stack state
git-svn-id: svn://kolibrios.org@9807 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-05 15:47:56 +00:00
2543e89522 [KERNEL] Temporal fix for fragmented packet building
git-svn-id: svn://kolibrios.org@9806 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-05 14:58:04 +00:00
ebefc0be7c [KERNEL] Fix incorrect address of the first buffer
git-svn-id: svn://kolibrios.org@9805 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-04 09:43:21 +00:00
4cd9e17acd [KERNEL] Fix FIXME
git-svn-id: svn://kolibrios.org@9804 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 14:42:34 +00:00
be86fc49c6 [KERNEL] Fix offset to first fragment
git-svn-id: svn://kolibrios.org@9803 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 14:41:19 +00:00
12d55e6e71 [KERNEL] Temporal fragmented packet size workaround
git-svn-id: svn://kolibrios.org@9802 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 12:41:26 +00:00
b2bd20b9fa [KERNEL] Temporal fix for EDI destruction
git-svn-id: svn://kolibrios.org@9801 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 11:26:04 +00:00
0700cf15dd [KERNEL] Update compyrights in IPv4.inc
git-svn-id: svn://kolibrios.org@9800 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 10:41:03 +00:00
52a5b1bf6e [KERNEL] Fix IPv4 packet buffer structuring
git-svn-id: svn://kolibrios.org@9799 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-05-02 10:35:07 +00:00
33f685c41e [KERNEL] Generate .fas file for kernel with extended primary loader
git-svn-id: svn://kolibrios.org@9798 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-27 16:23:37 +00:00
df15574e00 Translate documentation of sf68.31 into English
git-svn-id: svn://kolibrios.org@9796 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-26 20:55:37 +00:00
Doczom
906a16d3a2 fixed kernel malfunction when loading a program with mem_size > os_base .
git-svn-id: svn://kolibrios.org@9794 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-26 13:09:12 +00:00
Doczom
953d47e06c Add documentation on 68.31 sysfn
git-svn-id: svn://kolibrios.org@9779 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-23 21:32:11 +00:00
vitalkrilov
f1b9d66b39 kernel: changed "/rd/1" to "/sys" (at least for returning normal work in UEFI mode with non-ramdisk "/sys" directory)
docs of kernel (rus, SysFn68-16): changed "/rd/1" to "/sys" (like in ENG version; I guess writer meant "/sys")

git-svn-id: svn://kolibrios.org@9756 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-02 23:04:09 +00:00
Marat Zakiyanov
16a184061b exFAT_Delete - delete file/folder (F70.8)
git-svn-id: svn://kolibrios.org@9755 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-02 21:38:53 +00:00
Marat Zakiyanov
4f754c9e8a Correction of documentation for F70
git-svn-id: svn://kolibrios.org@9745 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-20 13:09:59 +00:00
Marat Zakiyanov
5d12a6e4a5 exFAT_SetFileInfo - set attributes of file/folder (F70.6)
git-svn-id: svn://kolibrios.org@9744 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-20 09:10:06 +00:00
Doczom
0e38558cb0 fix bug in free group of port(46 sysf) in deleting thread
git-svn-id: svn://kolibrios.org@9743 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-19 16:20:29 +00:00
Doczom
8708293b8f small update 46 system function(no tested!)
git-svn-id: svn://kolibrios.org@9742 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-18 04:09:59 +00:00
turbocat
d9a3ea763b kernel: added struct sockaddr
git-svn-id: svn://kolibrios.org@9739 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-13 14:45:55 +00:00
Marat Zakiyanov
c99afa0b60 exFAT - support for file name hashes
git-svn-id: svn://kolibrios.org@9738 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-13 12:25:05 +00:00