Commit Graph

1617 Commits

Author SHA1 Message Date
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
theonlymirage
ffac6ebf7a Сlear direction flag for Phoenix BIOS (for correct printing of messages in real mode).
git-svn-id: svn://kolibrios.org@7215 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-04-02 06:33:43 +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
CleverMouse
d74401a2fc use correct language for boot screen, broken in r7129
git-svn-id: svn://kolibrios.org@7140 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-01-26 18:18:03 +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
c14a80d34f Add UEFI stuff.
git-svn-id: svn://kolibrios.org@7130 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-16 21:10:49 +00:00
f208e0e454 Split bootbios.asm and kernel.asm.
* Move bios-related part of kernel.asm before B32 label to
  bootbios.asm file;
* Move bx_from_load, boot_dev and kernel_restart_bootblock variables
  to BOOT_* 0x9000 block;
* Update Tupfile.lua, Makefile, build.bat, build.sh accordingly;
* Now bios and uefi loaders can jump to very first byte of the kernel.

git-svn-id: svn://kolibrios.org@7129 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-16 20:21:10 +00:00
6494817540 Add EFLAGS_* macros, get rid of some more magic numbers.
git-svn-id: svn://kolibrios.org@7126 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-05 06:39:34 +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
16d9a4a4bc Remove VRR code, mostly commented out anyway.
git-svn-id: svn://kolibrios.org@7121 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-11-29 00:15:25 +00:00
afdc8496fb Add empty $Revision$ macro.
svn keywords are neither substituted by git-svn nor catched by
existing "$Revision a" macro, ignore them to not fail the build.

git-svn-id: svn://kolibrios.org@7114 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-11-20 09:58:28 +00:00
0CodErr
5721df73ee fix for draw not ASCIIZ
git-svn-id: svn://kolibrios.org@7103 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-10-20 16:03:18 +00:00
hidnplayr
144ea3d326 Use tcp_output instead of tcp_respond to send delayed acks, we need it for correct window advertisement amongst other things...
git-svn-id: svn://kolibrios.org@7099 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-10-17 19:59:47 +00:00
ashmew2
a396aff3da Fix TCP window size in tcp_respond
git-svn-id: svn://kolibrios.org@7098 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-10-17 19:43:14 +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
a83abc4c5f fat: support for non-ASCII chars in short names
git-svn-id: svn://kolibrios.org@7003 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-09-22 21:51:37 +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
pathoswithin
aa52644442 small fix
git-svn-id: svn://kolibrios.org@6939 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-07-29 05:24:20 +00:00
pathoswithin
ed0c1f6d3a ext fs: sysfunction 70.10 support
git-svn-id: svn://kolibrios.org@6933 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-07-09 08:28:00 +00:00
Sergey Semyonov (Serge)
8b1036ed49 kernel: pipes - improved synchronization
git-svn-id: svn://kolibrios.org@6929 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-06-16 22:47:00 +00:00
Sergey Semyonov (Serge)
65af271ccd kernel: pipe io bugfixes
git-svn-id: svn://kolibrios.org@6928 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-06-16 11:19:43 +00:00
Sergey Semyonov (Serge)
7ee30af446 kernel: read/write operations on pipe
git-svn-id: svn://kolibrios.org@6927 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-06-16 07:53:37 +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
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
hidnplayr
44f6fd248e TCP: Use bitflag instead of dword for t_force.
git-svn-id: svn://kolibrios.org@6916 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-31 17:54:16 +00:00
hidnplayr
f8148f187a TCP: dont accept out of order FINs.
git-svn-id: svn://kolibrios.org@6915 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-30 21:21:21 +00:00
hidnplayr
5b5249a5d6 TCP: Don't increase sequence number when resending a FIN.
git-svn-id: svn://kolibrios.org@6914 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-30 20:33:16 +00:00
ashmew2
c23792822f TCP Fast ACK: Fix advertised window size
git-svn-id: svn://kolibrios.org@6913 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-30 16:41:35 +00:00
hidnplayr
e9dc6c5ab5 TCP: improved routing, connect.
git-svn-id: svn://kolibrios.org@6912 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-28 20:57:46 +00:00
hidnplayr
e15ba926dd UDP: Improved routing.
git-svn-id: svn://kolibrios.org@6911 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-28 20:55:31 +00:00
hidnplayr
3c9e868864 TCP_process_input: remember device number.
git-svn-id: svn://kolibrios.org@6910 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-28 20:50:33 +00:00
hidnplayr
f4e464bc8a Bugfix for TCP advertised window calculation.
git-svn-id: svn://kolibrios.org@6909 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-28 16:52:24 +00:00
ashmew2
caf7d0c041 Add a build script for Linux
git-svn-id: svn://kolibrios.org@6908 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-26 18:56:19 +00:00
ashmew2
03c47f08be Build script for linux
git-svn-id: svn://kolibrios.org@6907 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-26 18:43:39 +00:00
pathoswithin
f4669d53a9 fix for 70.1
git-svn-id: svn://kolibrios.org@6901 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-19 09:02:21 +00:00
pathoswithin
5d55e63e36 small fix
git-svn-id: svn://kolibrios.org@6900 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-18 09:15:03 +00:00
pathoswithin
545bc303eb sysfunction 4: string length tracking
git-svn-id: svn://kolibrios.org@6899 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-05-17 08:01:34 +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
IgorA
dc5527c5ca update docs sys function 54.1
git-svn-id: svn://kolibrios.org@6891 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-04-29 09:12:39 +00:00
pathoswithin
ff31272774 documentation fix
git-svn-id: svn://kolibrios.org@6880 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-28 14:30:08 +00:00
pathoswithin
45aee00e6b sysfunction 70.5: small change
git-svn-id: svn://kolibrios.org@6876 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-07 16:28:02 +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
846906fa8c iso9660: get CD info
git-svn-id: svn://kolibrios.org@6872 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-03 17:06:08 +00:00
pathoswithin
5e7dc6b25c ext: get volume info
git-svn-id: svn://kolibrios.org@6871 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-01 16:45:33 +00:00
pathoswithin
9490c62e74 ntfs: fix volume name
git-svn-id: svn://kolibrios.org@6869 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-28 15:55:21 +00:00
pathoswithin
a66ba0a1e0 fat: get volume info
git-svn-id: svn://kolibrios.org@6868 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-28 12:33:45 +00:00
pathoswithin
2e874adffb fat: cleaning
git-svn-id: svn://kolibrios.org@6867 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-21 17:22:02 +00:00
pathoswithin
95c7aad99e ext fs small fixes
git-svn-id: svn://kolibrios.org@6861 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-10 09:17:54 +00:00
pathoswithin
53c5e5426f ext fs small fix
git-svn-id: svn://kolibrios.org@6859 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-08 17:14:28 +00:00
pathoswithin
d248870812 ext fs fixing
git-svn-id: svn://kolibrios.org@6856 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-06 09:55:55 +00:00
pathoswithin
be199bc49c ext fs optimizing
git-svn-id: svn://kolibrios.org@6853 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-04 13:17:52 +00:00
pathoswithin
f1c9b0ad0f fixes for ext fs
git-svn-id: svn://kolibrios.org@6852 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-02 05:47:15 +00:00
pathoswithin
abcb2b1bfa fat: sysfunction 70.4 update
git-svn-id: svn://kolibrios.org@6850 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-31 06:03:42 +00:00
pathoswithin
861e7b4ea9 ext2: support for files bigger than 4 GB
git-svn-id: svn://kolibrios.org@6849 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-30 01:03:59 +00:00
pathoswithin
1ab6d8bc4e ext fs optimizing
git-svn-id: svn://kolibrios.org@6848 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-28 02:39:27 +00:00
pathoswithin
3cbf21dcbe fat fix: report write size
git-svn-id: svn://kolibrios.org@6846 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-24 17:38:59 +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
pathoswithin
61afff5eba ntfs: fix for minimal cluster size
git-svn-id: svn://kolibrios.org@6824 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-06 12:42:17 +00:00
pathoswithin
54c3526028 ntfs small fix
git-svn-id: svn://kolibrios.org@6820 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-29 11:12:15 +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
5b61094dc6 fix #98, #103
Set Bus_Master bit in PCI Command register for drives in DMA mode


git-svn-id: svn://kolibrios.org@6816 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-26 21:52:58 +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
5d60fdc440 ext fs fix
git-svn-id: svn://kolibrios.org@6809 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-23 11:10:24 +00:00
pathoswithin
4ded9c23de function 71.2
git-svn-id: svn://kolibrios.org@6802 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-21 09:11:27 +00:00
pathoswithin
ee04f7ac02 more unicode functions
git-svn-id: svn://kolibrios.org@6800 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-18 03:13:18 +00:00
pathoswithin
755c9fe4d1 proper unicode support
git-svn-id: svn://kolibrios.org@6798 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-15 17:38:17 +00:00
pathoswithin
8ac6d6b04c fix corruption of process termination output
git-svn-id: svn://kolibrios.org@6793 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-09 13:26:43 +00:00
pathoswithin
f9f1eb0d75 preparation
git-svn-id: svn://kolibrios.org@6792 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-09 09:48:32 +00:00
0CodErr
54932fe994 flag client relative for blit
git-svn-id: svn://kolibrios.org@6790 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-07 18:33:17 +00:00
pathoswithin
6aab6c5478 support of "../" in the absolute file path
git-svn-id: svn://kolibrios.org@6787 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-05 19:44:57 +00:00
pathoswithin
d3eb673c05 NTFS fix
git-svn-id: svn://kolibrios.org@6781 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-04 10:56:24 +00:00
pathoswithin
ce0f946c73 ext fs fix for deleting
git-svn-id: svn://kolibrios.org@6778 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-02 14:34:11 +00:00
pathoswithin
bb2b6bba8c ext fs debugging
git-svn-id: svn://kolibrios.org@6774 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-30 17:27:25 +00:00
pathoswithin
8eb00f284b alternate ways of setting the string encoding for absolute paths
git-svn-id: svn://kolibrios.org@6758 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-25 15:11:25 +00:00
pathoswithin
69d1122a04 ext fs optimizing
git-svn-id: svn://kolibrios.org@6756 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-24 17:29:52 +00:00
pathoswithin
ba50660e2b ext fs optimizing
git-svn-id: svn://kolibrios.org@6726 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-18 14:43:26 +00:00
CleverMouse
eb8c20f6c5 don't set_mtrr if only fixed MTRRs exist; fixes triple fault in VirtualBox on some CPUs
git-svn-id: svn://kolibrios.org@6721 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-16 18:24:32 +00:00
0CodErr
344e7fb238 SockAddr structure description
git-svn-id: svn://kolibrios.org@6712 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-15 12:33:12 +00:00
CleverMouse
2a755c9a3d on RST, close TCP connection but don't free the structure - owner process should know what happened
git-svn-id: svn://kolibrios.org@6710 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-14 12:30:05 +00:00
Kirill Lipatov (Leency)
00d1316dd2 KOSfuncs names: fix typo
git-svn-id: svn://kolibrios.org@6683 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-06 22:37:32 +00:00
CleverMouse
1a0ba3eb53 revert r6629: failed mtrr configuration can lead to terrible performance, it must be as visible as possible
git-svn-id: svn://kolibrios.org@6663 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-03 14:07:13 +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
37e1c205ec ext fs optimizing
git-svn-id: svn://kolibrios.org@6643 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-01 05:21:53 +00:00
hidnplayr
1c171f35ce Improved documentation for sysfn 76
git-svn-id: svn://kolibrios.org@6634 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-30 12:34:43 +00:00
hidnplayr
aa05e6c7e9 Improved documentation for sysfn 76
git-svn-id: svn://kolibrios.org@6633 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-30 12:07:56 +00:00
Kirill Lipatov (Leency)
842bc246a4 kernel: mtrr fail message is shown as debug now
git-svn-id: svn://kolibrios.org@6629 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-28 09:30:57 +00:00
CleverMouse
7a0442863e fix for r6468 with CDs
git-svn-id: svn://kolibrios.org@6611 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-10-20 14:28:34 +00:00