Commit Graph

528 Commits

Author SHA1 Message Date
d4bf03befc [KERNEL] #2 Preparing to merge legacy TASKDATA into APPDATA:
- rename event_mask in APPDATA to occured_events, cause TASKDATA already has event_mask and they have different meaning and usage
- small fixes

git-svn-id: svn://kolibrios.org@8867 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-16 13:57:17 +00:00
9cdec89085 [KERNEL] Preparing to merge legacy TASKDATA into APPDATA:
- now doesnt use TASK_COUNT, now uses [thread_count] global instead of it
- update come copyrights

git-svn-id: svn://kolibrios.org@8866 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-16 10:04:10 +00:00
f3f40df401 [KERNEL] Refactoring:
- optimize struct zeroing in sys32.inc 
- set_app_param: delete setting completely unused APPDATA.event_filter (also make this field reserved)
- update some copyringhs
- other small fixes

git-svn-id: svn://kolibrios.org@8858 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-15 16:24:33 +00:00
75fe8b68da refactoring pid_to_slot:
- use constants instead of hardcoded values
- add more comments

git-svn-id: svn://kolibrios.org@8851 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-14 11:48:48 +00:00
4dea14e6e3 Delete unused function check_region (it was commented out years ago) and stub calls of this function.
git-svn-id: svn://kolibrios.org@8840 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-13 20:51:08 +00:00
Doczom
a18d802064 fixed vulnerability (reading kernel memory from userspace) in sysfn 54.2
git-svn-id: svn://kolibrios.org@8711 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-05-09 09:14:43 +00:00
Coldy
ed25f2c1ca Dll autoload
Kernel
- removed unnecessary and rewrote/add some comments, no code changes
User (lib/dll.obj)   
- Introduced new KX header as extension for existing formats
- Added staring KX header processing
- Improved import table test logic, no reason to kill app for import absence - skip 
  import processing (tnx ProMiNick)
- Add ReadMe.txt


git-svn-id: svn://kolibrios.org@8709 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-05-01 16:17:27 +00:00
7f4ba4d3e1 fixed multiple vulnerabilities in sysfn70 caused by absence of user addresses check
git-svn-id: svn://kolibrios.org@8680 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-04-24 21:16:55 +00:00
Coldy
cb3d4656b9 For DLL autoload
git-svn-id: svn://kolibrios.org@8671 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-04-17 08:52:27 +00:00
c39db73416 taskman.inc: fixed two vulnerabilities which caused kernel memory corruption on attempt to run apps with illegal addresses in MENUET0x header
git-svn-id: svn://kolibrios.org@8593 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-02-14 13:21:22 +00:00
1351c15bd0 taskman.inc: add comments for unobvious things, no code changes
git-svn-id: svn://kolibrios.org@8592 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-02-13 23:42:08 +00:00
Coldy
44a5c1b211 Fixed 69.4. Bug, call with PID=2 stops the system process thereby freezing the entire system!
git-svn-id: svn://kolibrios.org@8534 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-01-12 10:13:20 +00:00
609e822a2b Fix r8111 for APIC mode: Don't skip LAPIC initialization if already mapped.
git-svn-id: svn://kolibrios.org@8120 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-28 18:08:08 +00:00
8e5b79b154 kernel: Don't read acpi_dev_* vars that if uninitialized.
Currently only uefi4kos loader initializes these variables. May be one
day BIOS loaders will load DEVICES.DAT file and initialize these vars
too, may be one day we will detect APIC IRQs via ACPI. But not today.

git-svn-id: svn://kolibrios.org@8117 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-26 04:29:48 +00:00
a9121a0da9 kernel: Split acpi.inc and hpet.inc from init.inc.
Also, replace some hardcoded constants with macros.

git-svn-id: svn://kolibrios.org@8111 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-21 14:23:51 +00:00
aaf1ac4439 Assert sizeof.APPDATA=256, use it instead of hardcoded 256 value.
git-svn-id: svn://kolibrios.org@8093 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-12 02:54:44 +00:00
ab9b1ebb4a uefi4kos: Read config and kernel files from the disk.
* Now there is a config file with boot options, example included.
* Config, kernel and ramdisk are loaded from the disk, not compiled in.
* DEVICES.DAT file is also optionally loaded from the disk.
* Also, move the loader to /kernel/trunk/bootloader/uefi4kos.

git-svn-id: svn://kolibrios.org@8092 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-06 03:32:57 +00:00
f8b90e92fa translate russian comments to english #3, no code changes
git-svn-id: svn://kolibrios.org@8052 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-16 13:51:29 +00:00
5b284466d4 Translate russian comments to english #2 , no code changes
git-svn-id: svn://kolibrios.org@8051 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-14 22:30:33 +00:00
4689014eb5 translate russian comments to english, no code changes
git-svn-id: svn://kolibrios.org@8050 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-14 15:53:12 +00:00
8f21814292 Move slab allocator code from bus/usb/memory.inc to core/slab.inc.
git-svn-id: svn://kolibrios.org@8037 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-06-11 13:23:44 +00:00
hidnplayr
5a633309ff ай-яй-яй: Fix #7967
git-svn-id: svn://kolibrios.org@7968 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-22 15:44:06 +00:00
hidnplayr
d397ad5154 User-land ring buffers.
git-svn-id: svn://kolibrios.org@7967 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-22 15:38:59 +00:00
hidnplayr
9ab5b699d5 Improved readability, no semantic changes.
git-svn-id: svn://kolibrios.org@7965 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-21 13:55:36 +00:00
pavelyakov
a8324ce5d2 Does not work stably :(
git-svn-id: svn://kolibrios.org@7830 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-27 19:50:59 +00:00
pavelyakov
585f0d6cbf Core: new function sys array
git-svn-id: svn://kolibrios.org@7828 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-04-27 19:00:36 +00:00
cbceb320e8 kernel: Support more than one I/O APIC and 24 interrupts.
git-svn-id: svn://kolibrios.org@7733 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-03-02 04:25:30 +00:00
pavelyakov
4200a751e8 По решению администрации убрал функцию
git-svn-id: svn://kolibrios.org@7327 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-27 13:24:33 +00:00
pavelyakov
598bb537e9 Fixed error code and optimized function
git-svn-id: svn://kolibrios.org@7325 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-27 10:26:47 +00:00
pavelyakov
e9a9823069 Fixed error
git-svn-id: svn://kolibrios.org@7323 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-25 13:30:36 +00:00
pavelyakov
889dc1746b Fix style
git-svn-id: svn://kolibrios.org@7322 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-25 13:27:47 +00:00
pavelyakov
3c1445e6c6 Added KERNEL process
git-svn-id: svn://kolibrios.org@7321 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-25 13:22:48 +00:00
pavelyakov
343e87c60f Added function checksum security
git-svn-id: svn://kolibrios.org@7320 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-25 10:09:02 +00:00
pavelyakov
bdc68077f4 Added Implementation of the function in the system - EAX = 81
git-svn-id: svn://kolibrios.org@7319 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-08-24 23:55:36 +00:00
db8eddbd53 Enable xsave/xrstor, attempt 2.
git-svn-id: svn://kolibrios.org@7276 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-05-13 00:16:10 +00:00
53a4fd1aef Disable xsave code until proper fix.
git-svn-id: svn://kolibrios.org@7199 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-03-21 00:02:11 +00:00
CleverMouse
4286d7bac3 revert FpuSave/FpuRestore to old implementations because existing drivers don't know about AVX, provide alternate exports AvxSaveSize/AvxSave/AvxRestore
git-svn-id: svn://kolibrios.org@7168 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-02-27 16:27:26 +00:00
CleverMouse
43e84d7672 fix FPU after r7124 for other CPU configurations
git-svn-id: svn://kolibrios.org@7165 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-02-19 16:35:45 +00:00
CleverMouse
a49931c083 fix FPU after r7124
git-svn-id: svn://kolibrios.org@7164 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-02-19 14:53:31 +00:00
0e02132b9f Replace 'equ' macros with '=' ones.
They appear in symbols file.
They don't require parentheses.
They are shorter.

git-svn-id: svn://kolibrios.org@7136 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-20 01:07:10 +00:00
70ef44fcc1 Add tests to autobuild: mtrrtest and test_malloc.
git-svn-id: svn://kolibrios.org@7133 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-17 02:30:54 +00:00
368d42ffae Update BOOT_DATA structure and use it instead of all the BOOT_* vars.
git-svn-id: svn://kolibrios.org@7132 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-17 02:12:53 +00:00
9e6b9b61f7 Use xsave/xrestor if available, enable AVX* instructions.
git-svn-id: svn://kolibrios.org@7124 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-05 05:24:21 +00:00
09684c0db9 Synchronize memmap.inc and const.inc, replace hardcoded numbers with macros.
git-svn-id: svn://kolibrios.org@7122 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-11-29 22:03:58 +00:00
0CodErr
ea4f9aa063 remove unnecessary check
git-svn-id: svn://kolibrios.org@6974 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-09-13 10:53:39 +00:00
Sergey Semyonov (Serge)
2cbf514c37 kernel: get_clock_ns() funny 96-bit arithmetic
git-svn-id: svn://kolibrios.org@6942 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-08-11 16:17:30 +00:00
Sergey Semyonov (Serge)
d8ccef567e kernel: get_clock_ns() correction
git-svn-id: svn://kolibrios.org@6941 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-08-11 14:55:17 +00:00
Sergey Semyonov (Serge)
af61cc97e8 kernel: initial pipe() support
git-svn-id: svn://kolibrios.org@6926 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-06-15 22:36:39 +00:00
pathoswithin
a4a06a81a0 no need for manual heap initialization (68.11)
git-svn-id: svn://kolibrios.org@6893 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-13 06:41:42 +00:00
a7cb2f3691 Set CR0.AM bit
Allow applications to get Alignment Check exception


git-svn-id: svn://kolibrios.org@6817 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-26 23:29:27 +00:00