Commit Graph

285 Commits

Author SHA1 Message Date
109fd094ea
Fix NULL pointer 2024-02-16 19:05:53 +01:00
00cca9a1c1
Add %U XTOS extension for UUID/GUID string argument support 2024-02-16 19:02:44 +01:00
edd18b1dea
Add %Z MSVC extension for ANSI/Unicode string argument support 2024-02-16 18:14:16 +01:00
a1ec5e410d
Refactor RtlpWriteWideStringValue() and RtlpWriteWideStringStringValue() routines 2024-02-16 17:03:10 +01:00
8dd0e70dd9
Implement printf-alike wide string formatting mechanism, currently without floating point numbers support 2024-02-15 23:01:13 +01:00
8a62a2b367
Switch calling convention to stdcall 2024-02-14 14:53:32 +01:00
7e23484252
Implement RtlReverseWideString(), RtlTrimLeftWideString(), RtlTrimRightWideString() and RtlTrimWideString() routines 2024-02-14 14:46:34 +01:00
d964e4b408
Implement RtlConcatenateString(), RtlReverseString() and RtlTokenizeString() routines 2024-02-14 14:38:28 +01:00
55fb9e2eb1
Implement RtlGetBaseExponent() routine for getting base(10) exponent of a given floating point value 2024-02-14 00:02:04 +01:00
cca2e65376
Rework 64-bit division routines to support i686 architecture 2024-02-13 16:56:29 +01:00
a852993842
Add missing forward references to math related routines 2024-02-13 16:25:41 +01:00
99bdd917d9
Add basic kernel math support 2024-02-13 14:05:37 +01:00
77bc796769
Implement HlClearApicErrors() and HlSendEoi() routines, change HlDisableLegacyPic() calling convention 2024-02-09 15:11:14 +01:00
73cd4bd4f2
Export runlevel related routines 2024-02-07 22:26:38 +01:00
0fc14f6f82
Export spinlock related routines 2024-02-07 22:19:34 +01:00
2d7309476a
Describe kernel executive layer 2024-02-07 20:05:20 +01:00
18934ae79d
NTOS compatibility layer moved to 3rd party driver 2024-02-07 17:50:01 +01:00
460ba7c857
Fix the filename used for exports 2024-02-07 17:15:23 +01:00
99abcd63d1
Implement basic kernel spinlock mechanism 2024-02-05 22:07:39 +01:00
7727888087
Implement ArFlushTlb() routine 2024-02-04 23:43:38 +01:00
abdb9b25db
Implement RtlAtomicBitTestAndSet() and RtlAtomicBitTestAndSet64() intrinsic routines 2024-02-04 22:34:22 +01:00
9ce841e957
Implement memory barriers 2024-02-04 22:10:37 +01:00
cd59c1e80d
Add missing routine description 2024-01-31 16:23:05 +01:00
f0204bf448
Enable linker map for xtoskrnl 2024-01-31 16:09:35 +01:00
8e61503de1
Implement RtlCompareGuids() kernel routine 2024-01-31 16:08:06 +01:00
579b4dc970
Implement RtlTrimLeftString(), RtlTrimRightString() and RtlTrimString() routines 2023-12-09 20:18:02 +01:00
d7fbe531fd
Improvements in string and wide string support
* Implement RtlCompareString(), RtlCompareStringInsensitive(), RtlCompareWideString() and RtlCompareWideStringInsensitive()
* Rename some routines t omatch naming conventions
* Switch to CHAR in string operations
2023-12-06 23:00:18 +01:00
1e696258c2
Initialize framebuffer and processor 2023-11-29 22:49:15 +01:00
31b8cd8d3d
Update HlDisablePic() description 2023-11-29 22:43:57 +01:00
dddd1eb183
Rename internal kernel headers to distinguish them easily from XTDK 2023-11-29 20:39:59 +01:00
59aa62916a
Include architecture specific HAL headers 2023-11-29 20:15:12 +01:00
3800138f52
Move (A)PIC related forward references to arch-specific headers 2023-11-29 20:13:03 +01:00
Jozef Nagy
c8a54e602b
Disable legacy 8259 PIC before enabling APIC
Reviewed-on: xt-sys/exectos#5
Reviewed-by: Rafal Kupiec <belliash@noreply.codingworkshop.git>
Co-authored-by: Jozef Nagy <schkwve@gmail.com>
Co-committed-by: Jozef Nagy <schkwve@gmail.com>
2023-11-29 20:07:16 +01:00
669b84a826
Add architecture related information to kernel startup string 2023-11-29 18:32:03 +01:00
9aafa63617
Move CPU and PIC support into common for i686 and amd64 place 2023-11-29 18:26:46 +01:00
f6c621c2a6
Basic processor initialization code 2023-11-28 22:31:39 +01:00
d4ee87fd62
Fix function prototype 2023-11-28 15:39:32 +01:00
d17b06a180
Register interrupt handlers once the APIC initialization is done 2023-11-28 14:20:23 +01:00
e5adc31af7
Implement basic APIC support, including X2APIC 2023-11-27 22:38:15 +01:00
e886baa0d8
Fix reading from and writting to APIC registers 2023-11-26 16:57:40 +01:00
0e6844e2fa
Fix page fault on accessing initial thread frame 2023-11-26 14:14:54 +01:00
96a19d23b3
Fix i686 build by setting APIC transformation tables static 2023-11-26 00:38:20 +01:00
ba6e68e1b5
Fix a bug that caused overwritting a value read from CR8 with a default value 2023-11-26 00:33:46 +01:00
bed49fa0ac
Fix function prototypes using fastcall and stdcall calling convensions 2023-11-25 23:25:44 +01:00
e245754d95
Add running level management support 2023-11-25 23:14:15 +01:00
5204d8bc2f
Correct (A)PIC related source file description 2023-11-25 19:23:18 +01:00
55cc62f5a0
Rename KIRQL to KRUNLEVEL type 2023-11-25 00:32:55 +01:00
236927fba0
Move APIC related routines 2023-11-24 22:45:29 +01:00
1cb21a81dd
Rename HlInitializeDisplay() to HlInitializeFrameBuffer() 2023-11-22 20:36:05 +01:00
f28c870192
Implement KeHaltSystem() routine 2023-11-22 19:24:14 +01:00
d8403d01f5
Verify kernel and boot loader compatibility 2023-11-22 17:22:57 +01:00
1eecad21db
Implement HlReadApicRegister() and HlWriteApicRegister() routines for basic APIC support 2023-11-20 15:26:03 +01:00
0c3268acd1
Export registers read/write related routines 2023-11-19 00:46:51 +01:00
12f946c92d
Fixes to I/O registers related routines 2023-11-19 00:39:52 +01:00
71d0608643
Implement ArGetStackPointer() routine 2023-11-19 00:09:16 +01:00
1a932468a2
Add some DPC related stubs 2023-11-16 14:53:54 +01:00
ec4a0fcb70
Add missing KepRetireDpcList() routine forward reference 2023-11-15 23:19:20 +01:00
5b6f3b0244
Mark user mode threads as not yet supported 2023-11-15 20:41:28 +01:00
35aa26e0e9
Add missing documentation comment block 2023-11-15 15:50:33 +01:00
5d27473bb0
Fix i686 build 2023-11-15 15:34:04 +01:00
d35dd4fce3
Save processor state during kernel initialization 2023-11-15 15:00:38 +01:00
ccd0514416
Implement more CPU-related routines 2023-11-15 14:52:18 +01:00
fc85e0674b
Let KeGetCurrentProcessorControlBlock() use CurrentPrcb field and correct comments 2023-11-13 15:36:50 +01:00
1d9a79736a
Allow to postpone thread startup 2023-11-11 16:30:53 +01:00
641b34b119
Fixes in i686 version of KepInitializeThreadContext() 2023-11-08 16:06:01 +01:00
362eefc2b3
Fixes in AMD64 version of KepInitializeThreadContext() to get rid of PageFault exception 2023-11-07 15:34:49 +01:00
91ce0f9947
Compensate missing return address, which is a 4-byte on i686 and an 8-byte on amd64 2023-11-05 20:07:13 +01:00
ba833422b0
Implement ExCompleteRundownProtection() and ExReInitializeRundownProtection() routines and add stub for ExWaitForRundownProtectionRelease() 2023-11-05 09:50:04 +01:00
02f35dbd8c
Try to allocate new stack for a thread if needed 2023-11-03 16:04:10 +01:00
a6c3924b56
Initialize Idle thread for i686 architecture 2023-11-03 15:29:01 +01:00
63f8dbc59b
Initialize CPU power structures, idle process and idle thread 2023-11-02 23:07:11 +01:00
2621cb6d8a
Turn atomic routines architecture independent 2023-10-29 21:43:05 +01:00
783a4a2aa0
Finish PoInitializeProcessorControlBlock() routine implementation 2023-10-29 20:14:10 +01:00
aa17be6eb3
Implement KeSetTargetProcessorDpc() routine 2023-10-29 19:59:21 +01:00
be7981f614
Implement KeInitializeThreadedDpc() and export it together with KeInitializeDpc() 2023-10-29 19:45:45 +01:00
a359c9b2e8
Keep only atomic routines 2023-10-29 18:22:11 +01:00
3f2baa5b50
Rename RtlInterlockedDecrementLongPtr() to follow routines naming convention 2023-10-29 12:21:19 +01:00
cf7c467637
Implement RtlInterlockedExchangePointer() routine 2023-10-29 11:48:31 +01:00
6d63750fc2
Rename KepArchInitialize() routine to KepInitializeMachine() 2023-10-29 10:38:23 +01:00
f05a262da2
Cleanup XTDK and XTOSKRNL headers 2023-10-29 09:58:47 +01:00
841a6b304b
Cleanup KE subsystem headers 2023-10-29 09:14:46 +01:00
798e4c1d22
Cleanup MM subsystem headers 2023-10-29 00:52:05 +02:00
600c86949b
Cleanup RTL subsystem headers 2023-10-29 00:14:01 +02:00
4ea54859f2
Add missing HL routine definitions 2023-10-28 23:36:21 +02:00
ad15c55a39
Cleanup AR subsystem headers 2023-10-28 23:35:34 +02:00
598b34acf7
AR subsystem is architecture dependant, thus there should be no generic routines 2023-10-28 23:08:08 +02:00
d55946c3cf
Cleanup HL subsystem headers 2023-10-28 22:56:04 +02:00
3f520c8e0f
Rename xtoskrnl headers 2023-10-28 22:35:33 +02:00
a2e3e3d9a9
Compile rundown routines 2023-10-28 01:37:27 +02:00
7f8618d2c0
Export ExAcquireRundownProtection(), ExInitializeRundownProtection() and ExReleaseRundownProtection() kernel routines 2023-10-28 00:02:18 +02:00
6f5e7f63f3
Include xtver.h to access version related definitions 2023-10-27 15:43:37 +02:00
4e553b5570
Remove unused variables to satisfy compiler 2023-10-27 15:37:31 +02:00
f549ca54a1
Implement I/O registers related routines 2023-04-05 00:04:11 +02:00
358b20f1a1
Reorder routines 2023-04-04 22:35:06 +02:00
4073b1589d
Rename endian conversion routines to match naming convention 2023-04-04 21:02:14 +02:00
d5dd87b889
Add initial kernel panic mechanism 2023-03-23 22:34:28 +01:00
2827bb400f
Implement ExAcquireRundownProtection() and ExReleaseRundownProtection() routines 2023-03-18 11:11:06 +01:00
1f8026db2f
Implement RtlInterlockedCompareExchangePointer() and RtlInterlockedDecrementLongPtr() atomic routines 2023-03-17 18:06:53 +01:00
934dba37a1
Initial kernel events support 2023-03-17 16:46:18 +01:00
e0778d0a12
Introduce kernel executive 2023-03-16 23:40:38 +01:00