aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
AgeCommit message (Collapse)AuthorFilesLines
2025-03-29fix gdt segments, improve idt and trial&error for triple faultFabian Imhof7-32/+46
2025-03-28gdt: fix reload of GDTFelix Morgner4-17/+21
The core problems were/are the following: - The flags of the segments were not entirely correct. Please recheck them against the spec! - The GDT pointer did not contain the address of the first (null) GTD entry, but the address of the stl::vector containing the GDT entries. - The far pointer must consist of: - the address to jump to - the byte index into the GDT for the desired segement descriptor to be loaded into CS. - The type of the "dummy" function we jump to was wrong (it's a function, we should declare it as such). - We cannot enable interrupts right now, since we die with a triple fault. This is caused by some initia fault which seems to lead to a general protection fault, which then triple faults since we cannot find the IDT. Some FIXMEs have been added to the code. Please look at them carefully and compare things against the specs.
2025-03-28Attempt to fix ljmp. Might not be possible in Long modeMatteo Gmür3-6/+6
2025-03-28Revert "update long jump handling"Matteo Gmür3-14/+18
This reverts commit 9ddfcd02413a93718e8cde53f9ba5a96a5b29b8f.
2025-03-27update long jump handlingFabian Imhof3-18/+14
2025-03-27Attempt to fix crash in far jump. WIP does not return from call to assembler ↵Matteo Gmür5-22/+15
method
2025-03-26add llm suggestion to idt creationFabian Imhof1-13/+16
2025-03-26Fixing pointer values and adding basic idt valueMatteo Gmür2-3/+22
2025-03-25Implement idtr structure and document possible flags.Matteo Gmür9-90/+145
2025-03-25Adjust file structure and fix compilation issuesMatteo Gmür16-101/+97
2025-03-20begin implementation of IDTFabian Imhof10-43/+128
2025-03-18Attempt to add calls that Reload code segment and data segment registerMatteo Gmür1-0/+31
2025-03-18Fix invalid bit values in access byte and typo in create_segment_descriptor ↵Matteo Gmür1-1/+1
method
2025-03-17Debug and adjust load task register assembly call. WIPMatteo Gmür3-25/+27
2025-03-17Fix issue in vectorMatteo Gmür3-18/+15
2025-03-16Move base value out into variableMatteo Gmür1-3/+4
2025-03-16add commentFabian Imhof1-1/+0
2025-03-16start implementing TSSFabian Imhof4-39/+89
2025-03-15Merge branch 'feat_inital_context_switching' of ↵Fabian Imhof1-2/+0
ssh://gitlab.ost.ch:45022/teachos/kernel into feat_inital_context_switching
2025-03-15create TSS descriptorFabian Imhof1-0/+10
2025-03-15Use empty bit field to implement reservedMatteo Gmür1-2/+0
2025-03-15temporarily make all page table entries user accessibleFabian Imhof1-2/+9
2025-03-15implement loading of gdtr registerMatteo Gmür11-74/+73
2025-03-14Fix header recursion problemMatteo Gmür2-9/+9
2025-03-13fixup typing and continue adding gdtFabian Imhof7-22/+35
2025-03-13Merge branch 'feat_inital_context_switching' of ↵Fabian Imhof1-6/+10
ssh://gitlab.ost.ch:45022/teachos/kernel into feat_inital_context_switching
2025-03-13IN_PROGRESS implement gdt initializationFabian Imhof8-47/+101
2025-03-13Fix segment descriptor bit order of private membersMatteo Gmür1-6/+10
2025-03-13create GDT and fix segment descriptor bit orderFabian Imhof4-6/+72
2025-03-10Implement segment descriptorMatteo Gmür2-21/+18
2025-03-10Adjust segment descriptor to use defined helpersMatteo Gmür1-0/+13
2025-03-10Adjust register segment descriptors to possible statesMatteo Gmür3-8/+43
2025-03-09Adjust comments and implement remaining interface for STL classes.Matteo Gmür1-4/+1
2025-03-09add doxygen comments to shared and unique pointerFabian Imhof1-7/+1
2025-03-04Add more methods to vector to mimic stl interface partially.Matteo Gmür1-0/+9
2025-02-27add descriptor_table access_byteFabian Imhof2-2/+16
2025-02-27Add files to cmake and implement gdt flagsMatteo Gmür1-0/+6
2025-02-27clear interrupt flagFabian Imhof1-0/+2
2025-02-24Add noexpect to deallocate callsMatteo Gmür3-3/+3
2025-02-23Remove useless if statementsMatteo Gmür1-6/+2
2025-02-23Adjust linked list allocator to allow for deallocation without passing size ↵Matteo Gmür4-25/+43
parameter and with arbitrary size
2025-02-21Add documentation to new componentsMatteo Gmür1-1/+1
2025-02-21Update factory method codeMatteo Gmür4-51/+35
2025-02-20add heap_allocator base classFabian Imhof2-20/+32
2025-02-20Make allocation type configurableMatteo Gmür1-7/+38
2025-02-20Add singelton implementation for global heap allocatorMatteo Gmür1-4/+8
2025-02-20Fix compilation issuesMatteo Gmür2-30/+38
2025-02-20Create global heap allocator attemptMatteo Gmür2-17/+46
2025-02-20added new and delete overrideFabian Imhof1-21/+16
2024-12-17Fix typoMatteo Gmür2-3/+3