Commit Graph

2621 Commits

Author SHA1 Message Date
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
Marat Zakiyanov
fcc5dc0546 Fix r9734 - reading content outside of the first cluster of directory
git-svn-id: svn://kolibrios.org@9737 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-12 14:30:52 +00:00
23097ce0e6 [KERNEL] Revert previous change
git-svn-id: svn://kolibrios.org@9736 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-10 11:14:11 +00:00
Marat Zakiyanov
5e82f613f7 Fix r9734 - adding the Rev parameter to the file properties.
git-svn-id: svn://kolibrios.org@9735 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-03 22:15:29 +00:00
Marat Zakiyanov
f8da95f800 exFAT file system support (only read)
git-svn-id: svn://kolibrios.org@9734 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-03-03 22:00:47 +00:00
e37c439eda [KERNEL] Adjust packet size calculation
git-svn-id: svn://kolibrios.org@9729 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-23 15:47:10 +00:00
6cd77c47ef Update a file
git-svn-id: svn://kolibrios.org@9721 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-20 16:00:47 +00:00
Doczom
182f6ade61 small update copyright year in kernel
git-svn-id: svn://kolibrios.org@9715 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-12 17:27:41 +00:00
Doczom
39780d1f65 delete APPDATA.mem_start
git-svn-id: svn://kolibrios.org@9710 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-09 18:09:54 +00:00
Doczom
707dc7c2e6 delete TASKDATA
git-svn-id: svn://kolibrios.org@9709 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-09 17:07:51 +00:00
turbocat
dac27e480b Kernel: apply security patch for 70 function(by Rgimad). Thanks Dunkaist for the corrections.
git-svn-id: svn://kolibrios.org@9698 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-07 21:07:07 +00:00
Doczom
19347417f0 replacing TASK DATA.pid with APPDATA.tid
git-svn-id: svn://kolibrios.org@9692 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-06 20:33:29 +00:00
Doczom
03c3cc8b48 discontinuing the use of the twdw constant
git-svn-id: svn://kolibrios.org@9679 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-03 18:41:21 +00:00
Doczom
4afc0dd84b replacing TASKDATA.event_mask with APPDATA.event_mask and cleared code
git-svn-id: svn://kolibrios.org@9614 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-11 20:38:19 +00:00
Doczom
df70a59fd5 add APPDATA.state for delete TASKDATA
git-svn-id: svn://kolibrios.org@9613 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-11 10:50:30 +00:00
Doczom
2470cf023c add APPDATA.state for delete TASKDATA
git-svn-id: svn://kolibrios.org@9612 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-10 22:29:14 +00:00
Doczom
278fc718e1 add APPDATA.state for delete TASKDATA
git-svn-id: svn://kolibrios.org@9611 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-10 20:38:44 +00:00
Doczom
b1621a3797 add APPDATA.wnd_number
git-svn-id: svn://kolibrios.org@9608 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-10 16:52:37 +00:00
Doczom
a26a97719e update vga.inc
git-svn-id: svn://kolibrios.org@9606 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-09 23:50:54 +00:00
Doczom
2aee4bdf6a replacing TASKDATA.mem_start with APPDATA.memstart
git-svn-id: svn://kolibrios.org@9605 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-09 11:37:32 +00:00
Doczom
f3d6ff3eb2 replacing TASKDATA.counter_add with APPDATA.counter_add
git-svn-id: svn://kolibrios.org@9600 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-08 21:31:19 +00:00
Doczom
100cb041bb replacing TASKDATA.counter_sum with APPDATA.counter_sum.
I hope the kernel is working

git-svn-id: svn://kolibrios.org@9593 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-08 15:19:20 +00:00
Doczom
2db4916440 fix cpu_usage
git-svn-id: svn://kolibrios.org@9592 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-08 01:28:53 +00:00
Doczom
3d6209fb37 fix cpu_usage
git-svn-id: svn://kolibrios.org@9591 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-07 23:03:51 +00:00
Doczom
bb2c454ebe replacing TASKDATA.cpu_usage with APPDATA.cpu_usage
git-svn-id: svn://kolibrios.org@9590 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-07 21:53:56 +00:00
Doczom
db7f673018 add 3 constants
git-svn-id: svn://kolibrios.org@9571 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-04 18:51:19 +00:00
Doczom
c4f3315ffd small fix
git-svn-id: svn://kolibrios.org@9567 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-03 18:26:31 +00:00
f12d4adc7d [KERNEL] - removed commented outdated read_floppy_file function
- removed setmouse function that doesnt do anything
- redmousepos moved from kernel.asm to gui/mouse.inc
- small style fixes


git-svn-id: svn://kolibrios.org@9514 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-28 15:19:24 +00:00
c0671d602c [KERNEL] kernel.asm: clean commented outdated stuff, fix prior
git-svn-id: svn://kolibrios.org@9488 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-27 15:42:05 +00:00
99ad9a6ca7 fix prior, add gui/background.inc
git-svn-id: svn://kolibrios.org@9487 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-27 15:37:32 +00:00
c8ddc27015 [KERNEL] Sysfn 15, 25, 39 (working with background graphics) moved from kernel.asm to gui/background.inc file
git-svn-id: svn://kolibrios.org@9486 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-27 15:34:18 +00:00
f7761a485b [KERNEL] Move sysfn 1, 4, 13, 38 implementations from kernel.asm to window.inc
Fix comments style in window.inc
Cleanup some outdated & unused commented stuff in data32.inc

git-svn-id: svn://kolibrios.org@9477 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-26 13:18:33 +00:00
d92af710b5 [KERNEL] Use common stub undefined_syscall instead of paleholder
git-svn-id: svn://kolibrios.org@9476 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-26 11:12:56 +00:00
3d99a055b8 [KERNEL] Add sysfn 39.3 - copy rect of background image to buffer.
Previously was only 39.2 that reads one pixel from background image.
(39.2 is shomehow useless due to big context switching overhead if you trying to read some area of pixels using 39.2)

git-svn-id: svn://kolibrios.org@9458 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-22 17:10:59 +00:00
Doczom
c92d2a4af9 fix 68.31
git-svn-id: svn://kolibrios.org@9442 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-18 23:39:17 +00:00
Doczom
a83d394677 add function for get SRV structure
git-svn-id: svn://kolibrios.org@9441 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-18 22:46:36 +00:00
Doczom
dc2ad5b020 add function for unload driver
git-svn-id: svn://kolibrios.org@9440 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-18 18:11:03 +00:00
Doczom
d888aca21b small update loader drivers
git-svn-id: svn://kolibrios.org@9438 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-18 11:12:02 +00:00
Doczom
1168314a69 fix call function
git-svn-id: svn://kolibrios.org@9432 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-17 06:22:21 +00:00
Doczom
8c8771e04d add check handler driver
git-svn-id: svn://kolibrios.org@9430 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-17 06:07:45 +00:00
a9f8d6d660 [KERNEL][TEST] use_umka = False by default
git-svn-id: svn://kolibrios.org@9421 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-15 18:07:01 +00:00
97222e8036 [KERNEL][TEST] Undo prior, main branch isn't ready
git-svn-id: svn://kolibrios.org@9420 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-15 18:03:39 +00:00
03d859336e [KERNEL][TEST] Do not checkout trunk brranch of UMKa
git-svn-id: svn://kolibrios.org@9419 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-15 18:03:06 +00:00
64086ffda0 [KERNEL][TEST] Use llvm-mingw if available
git-svn-id: svn://kolibrios.org@9418 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-15 17:03:27 +00:00
c4ee26ef93 kolibri-ahci: added atapi disks registration, small refactoring & fixes. TODOFIX: identifying sector count of atapi disks gives always the same value. why?
git-svn-id: svn://kolibrios.org@9417 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-12 19:54:50 +00:00
88f0d7c48f [KERNEL][TEST] Only download img if not exist
git-svn-id: svn://kolibrios.org@9416 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-12 14:39:30 +00:00
65cd85761c [KERNEL][TEST] Only call UMKa functions on use_umka
git-svn-id: svn://kolibrios.org@9415 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-12 14:38:16 +00:00
198f333fa3 [KERNEL][TEST] Initial UMKa integration
git-svn-id: svn://kolibrios.org@9414 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-12 14:30:53 +00:00
f786997b1b [KERNEL][TEST] Handle the latest UMKa
git-svn-id: svn://kolibrios.org@9412 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-10 18:06:40 +00:00
0954251dbc [KERNEL][TEST][runtests.py] Conform PEP8 except import
git-svn-id: svn://kolibrios.org@9409 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-07 20:02:15 +00:00
6aea287961 [ASMXYGEN] Conform PEP8 except line import re
git-svn-id: svn://kolibrios.org@9408 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-07 19:35:46 +00:00
c867c5020b [ASMXYGEN] Convert indentation to spaces
git-svn-id: svn://kolibrios.org@9407 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-07 15:48:11 +00:00
Doczom
36933473bc fix load driver
TODO: add function for unload driver

git-svn-id: svn://kolibrios.org@9406 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-07 02:49:57 +00:00
Coldy
f3dca4689e Fixed vulnerabilitie in sysfn 68.23 (system halt if the name doesn't exist)
git-svn-id: svn://kolibrios.org@9405 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-06 16:57:50 +00:00
743ff0dfff [KERNEL] Update documentation of disk.inc
git-svn-id: svn://kolibrios.org@9404 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 15:51:25 +00:00
162c652619 [ASMXYGEN] Make it read comments before align specifier
git-svn-id: svn://kolibrios.org@9403 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 15:46:26 +00:00
e259e30fbf [ASMXYGEN] Add debug mode to compare generated stuff
git-svn-id: svn://kolibrios.org@9402 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 15:21:39 +00:00
bdebc82262 [ASMXYGEN] Only execute code on direct script execution
git-svn-id: svn://kolibrios.org@9401 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 14:51:26 +00:00
4da474f427 [ASMXYGEN] Move data closer to place it used
git-svn-id: svn://kolibrios.org@9400 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 14:48:06 +00:00
ae1e7138a1 [ASMXYGEN] Do not mix declarations and code
git-svn-id: svn://kolibrios.org@9399 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 14:43:31 +00:00
02675ebbfb [ASMXYGEN] Make keyword list compact
git-svn-id: svn://kolibrios.org@9398 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 14:22:21 +00:00
ae0000aeca [KERNEL][TEST] Prepare for full UMKa integration
git-svn-id: svn://kolibrios.org@9397 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-05 13:48:32 +00:00