Commit Graph

168 Commits

Author SHA1 Message Date
Doczom
d0acf78f92 [KERNEL] cleared the code of unnecessary comments
git-svn-id: svn://kolibrios.org@9932 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-08-20 21:54:50 +00:00
Doczom
0a5beb0bc0 [KERNEL] The window subsystem has been redesigned:
-extended WDATA structures up to 128 bytes
-added the background_windows constant
-the draw_data array has been deleted
-APPDATA.window and WDATA.thread fields added
-minor fixes in the operation of external file system drivers

git-svn-id: svn://kolibrios.org@9930 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-08-18 20:51:33 +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
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
Magomed Kostoev (mkostoevr)
6cd77c47ef Update a file
git-svn-id: svn://kolibrios.org@9721 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-20 16:00:47 +00:00
Magomed Kostoev (mkostoevr)
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
571040afd5 AHCI: Full multiple controller support.
Fix using hardcoded ctr1_data in three functions, use corresponding controller instead.
Add pointer to parent controller to PORT_DATA structure,
Other small changes

git-svn-id: svn://kolibrios.org@9272 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-15 16:48:27 +00:00
1f842ffb93 AHCI: simplify structures, fix naming, more comments. sync kolibri-ahci with trunk
git-svn-id: svn://kolibrios.org@9271 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-15 15:05:03 +00:00
3e39815f8c AHCI: fix failure when adding > 1 disks on one controller
git-svn-id: svn://kolibrios.org@9270 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-15 11:56:07 +00:00
14beceb157 AHCI: support up to 8 controllers
git-svn-id: svn://kolibrios.org@9231 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-02 17:49:21 +00:00
496d1b957e ahci: name drives as sdX instead of hdX
git-svn-id: svn://kolibrios.org@9219 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-10-16 22:13:26 +00:00
954246b1b7 Merge kolibri-ahci into trunk
git-svn-id: svn://kolibrios.org@9183 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-09-09 11:38:38 +00:00
b6f769987c kernel: Check for base+len overflow in is_region_userspace
git-svn-id: svn://kolibrios.org@9045 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-07-09 09:22:44 +00:00
6beb99fc30 kernel: Implement sf70.5 for default FS stub
Only get partition size, not its label.

Information of a block device and FS on it should be reported by
different system calls.

git-svn-id: svn://kolibrios.org@9043 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-07-09 03:20:12 +00:00
cdcaf70ae3 kernel: make ramdisk_init return pointer to disk structure.
git-svn-id: svn://kolibrios.org@8064 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-09-18 12:46:25 +00:00
4fd8527cc9 force rebuild
git-svn-id: svn://kolibrios.org@8055 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-31 14:06:41 +00:00
d1e7997956 translate russian comments to english #5, no code changes
git-svn-id: svn://kolibrios.org@8054 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-30 22:28:57 +00:00
cdf87e6a72 translate russian comments to english #4, no code changes
git-svn-id: svn://kolibrios.org@8053 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-07-16 19:31:16 +00:00
41d12fe88a docs: Fix adjust_cache_size prototype: it takes userdata too.
git-svn-id: svn://kolibrios.org@7727 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-02-21 02:41:21 +00:00
c780425437 Relax Protective MBR checks.
git-svn-id: svn://kolibrios.org@7546 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-11-09 21:18:56 +00:00
02da1fd4f3 Fix for GPT partitions scan.
GPT partition entry array (GPEA) has 128 entries by default, unused ones
must be zeroed. Due to memory corruption GPEA contained non-zero data of
first sectors of partitions. This led to fake partitions detected which
were mostly filtered out by their start:length and thus didn't show up.
Pass ebx=three-sector-sized buffer to disk_add_partition as expected.

git-svn-id: svn://kolibrios.org@7270 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-05-05 13:50:04 +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
pathoswithin
cb0c6cee9a sysfunction 70.10 new name validation
git-svn-id: svn://kolibrios.org@7040 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-10-03 10:27:20 +00:00
pathoswithin
fc631064ea New sysfunction 70.10 "rename/move"
git-svn-id: svn://kolibrios.org@6917 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-06-08 10:03:01 +00:00
pathoswithin
b27bd68162 sysfunction 70.5: get device size
git-svn-id: svn://kolibrios.org@6875 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-06 13:45:37 +00:00
pathoswithin
201a5bf041 fs: prevalidation for root folder, code despaghettizing
git-svn-id: svn://kolibrios.org@6845 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-22 16:19:39 +00:00
e828b2c8b5 Enable capacity checks for Protective MBR and GPT
git-svn-id: svn://kolibrios.org@6844 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-21 00:21:05 +00:00
dbe9918dc6 Return capacity and bytes per sector of bios disks
This patch makes bd_querymedia return valid Capacity and SectorSize
values. Bios disks detection code saves the values to extended
BiosDiskData structure, bd_querymedia copies them to DISKMEDIAINFO.


git-svn-id: svn://kolibrios.org@6843 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-21 00:14:05 +00:00
pathoswithin
26611cadd0 fix for ide_querymedia
git-svn-id: svn://kolibrios.org@6842 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-20 20:02:50 +00:00
56b3fa9987 Fix parsing of Protective MBR and GPT headers
git-svn-id: svn://kolibrios.org@6828 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-18 21:05:31 +00:00
34df6be0da Support GUID Partition Table (GPT) disk layout
git-svn-id: svn://kolibrios.org@6827 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-14 21:28:27 +00:00
6b6bcd23b5 Fix access to /fd2 (bugs #98, #103)
git-svn-id: svn://kolibrios.org@6814 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-26 00:57:51 +00:00
pathoswithin
595fd9817d IDE: more debug output
git-svn-id: svn://kolibrios.org@6650 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-01 22:31:10 +00:00
pathoswithin
1048443a57 one-string path for filesystems, some cleaning
git-svn-id: svn://kolibrios.org@6468 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-08-02 20:28:34 +00:00
pathoswithin
ee14b53b33 sysfunction 70 cleaning
git-svn-id: svn://kolibrios.org@6464 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-07-29 11:12:13 +00:00
CleverMouse
dd4f527c54 leave more space for extended BIOS data
git-svn-id: svn://kolibrios.org@6016 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-30 17:04:32 +00:00
CleverMouse
a64323c296 always install IDE interrupt handler
git-svn-id: svn://kolibrios.org@6015 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-30 15:48:01 +00:00
CleverMouse
ad9aec7af3 fix error handling for BIOS disks broken in r5569
git-svn-id: svn://kolibrios.org@6014 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-29 18:43:57 +00:00
pathoswithin
4054b22aaa LBA28 support
git-svn-id: svn://kolibrios.org@5852 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-10-20 22:51:18 +00:00
CleverMouse
f62c4748c7 merge ide_read and ide_write
git-svn-id: svn://kolibrios.org@5570 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-06-17 18:37:58 +00:00
Pathoswithin
0ad5c3e509 speed up IDE operations
git-svn-id: svn://kolibrios.org@5569 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-06-17 18:25:55 +00:00
Yogev Ezra
76a0cbdfe5 Change copyright year in kernel and drivers to 2015. No code changes.
git-svn-id: svn://kolibrios.org@5363 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-01-08 20:10:22 +00:00
CleverMouse
2a46f2320b fix floppy operations broken in r5089
git-svn-id: svn://kolibrios.org@5196 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-11-28 20:19:34 +00:00
CleverMouse
6f2514bcd9 don't trash ebx in fs_read64_sys, was broken in r5089
git-svn-id: svn://kolibrios.org@5095 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-08 18:46:36 +00:00
CleverMouse
9d022746fd disk cache: support for sector sizes other than 512 bytes
git-svn-id: svn://kolibrios.org@5089 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-03 12:11:19 +00:00
CleverMouse
727d1c9b53 fix SB16 driver broken in r3727, convert to PE
git-svn-id: svn://kolibrios.org@5057 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-08-25 09:49:27 +00:00
Marat Zakiyanov (Mario79)
be20dc3772 Additional fix to r.4838
git-svn-id: svn://kolibrios.org@4839 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-15 12:54:18 +00:00
Marat Zakiyanov (Mario79)
26aad0cc40 Fix for IDE controller. Some weird controllers generate an interrupt even if IDE interrupts are disabled and no IDE devices. For example, notebook ASUS K72F - IDE controller 010185 generates false interrupt when we work with the IDE controller 01018f. For this reason, the interrupt handler does not need to be installed if both channel IDE controller running in PIO mode.
git-svn-id: svn://kolibrios.org@4838 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-15 10:01:23 +00:00
Marat Zakiyanov (Mario79)
76718d400a Fix for r.4700 - fix proc check_ATAPI_device_event
git-svn-id: svn://kolibrios.org@4734 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-02 20:55:06 +00:00
Marat Zakiyanov (Mario79)
87aa62f216 Fix for r.4700
git-svn-id: svn://kolibrios.org@4720 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-03-30 21:09:44 +00:00