removed pdclib, strange things were happening..., user shell kinda works now

This commit is contained in:
2026-07-06 22:13:57 -05:00
parent 7d76f0ec73
commit 6d7a23d747
308 changed files with 829 additions and 41231 deletions

View File

@@ -6,24 +6,31 @@
yield: # void yield()
cli
pushfl
pushl %cs
popl %ecx
pushfl // EFLAGS
pushl %cs // CS
pushl %ecx // EIP
movl 8(%esp), %eax
pushal
call send_eoi_master
xor %eax, %eax
mov %ds, %ax
pushl %eax
movl 4(%esp), %ebx # Get CS
movl %ebx, 8(%esp) # Move CS over Old EIP
movl 0(%esp), %ebx # Get Return EIP
movl %ebx, 4(%esp) # Move Return EIP over CS
addl $4, %esp # Adjust stack pointer up.
pushal
mov $0x10, %ax
mov %ax, %ds
mov %ax, %es
pushl %esp
call switch_context
movl %eax, %esp
popl %eax
mov %ax, %ds
mov %ax, %es
popal
sti
iret