643 Commits

Author SHA1 Message Date
alnyan 2272bc55f1 all: wrap vesa feature in ifdef 2021-04-30 01:15:42 +03:00
alnyan abec971f7c fs: check access for unlinkat() 2021-04-30 01:15:35 +03:00
Mark 12ef80d290 Freeze 2020-11-20 11:51:08 +02:00
Mark 9a3e7404dd Fix desynced net code 2020-11-20 11:43:37 +02:00
Mark ba92882f6c ***: throw away disasm again 2020-11-09 13:18:11 +02:00
Mark ebb9e012d6 proc: CoW should work for pages with 2+ refs 2020-11-01 14:33:09 +02:00
Mark a971e0f15e ***: import code from audasm repo 2020-10-20 10:42:12 +03:00
Mark 593ffd4e0c binfmt/elf: switch to phdrs instead of (incorrect) shdrs loader 2020-10-19 15:58:46 +03:00
Mark c2db4e94a6 proc: fix gs/fs-related bug in exception handler
1. %rip -> %rsp (misspelt a register name, damn)
2. Rename swapgs_if_needed to iret_swapgs_if_needed for clarification
3. Add iret_swapgs_if_needed before iret from exception handler
2020-10-18 23:48:27 +03:00
Mark 877a5f455d fs/ext2: fix uninitialized var compiler warnings 2020-10-18 23:46:39 +03:00
Mark 7292260209 proc: fixup TSS.RSP0 on signal return 2020-10-18 20:20:18 +03:00
Mark b512d3d83c proc: fix missing include user/signal.h 2020-10-16 15:18:45 +03:00
Mark 6a58d983a1 user: add kernel instrumentation syscall 2020-10-16 15:18:44 +03:00
Mark f407f10c51 user: move stack_t and ucontext to signal.h 2020-10-16 15:18:44 +03:00
Mark 36c080a8ac user: add errnos needed for libstdc++-v3 build 2020-10-16 15:18:44 +03:00
Mark d7a3ed3ff5 SMP works? 2020-10-04 15:48:11 +03:00
Mark ff8f319d8c src: split process and thread source files 2020-09-27 12:31:46 +03:00
Mark f263bfb63f boot: use yboot2-proto instead of yboot2 itself 2020-09-27 12:31:21 +03:00
Mark 6fe45d96bf boot: remove yboot2 2020-09-27 11:56:13 +03:00
Mark 0394b17779 usb/hid: fix backspace key for usbkbd 2020-09-26 12:27:10 +03:00
Mark a0a79fa7f5 Update yboot2 2020-09-20 20:33:34 +03:00
Mark 02136a28b5 boot: use multiboot2 symbol table 2020-09-20 13:49:18 +03:00
Mark 1dea3c9e43 video: ugly hack to vastly speedup the console 2020-09-19 17:19:53 +03:00
Mark f9eb40dbfb cpu: properly reload segment registers after lgdt 2020-09-19 17:18:39 +03:00
Mark 5f7b6e2cee debug: Revert to old debug method 2020-09-18 14:23:20 +03:00
Mark f3ab428d86 boot: remove unnecessary while(1); 2020-09-18 14:22:55 +03:00
Mark 0227400824 io/ahci: disable AHCI driver (broken on Ryzen build) 2020-09-18 14:22:26 +03:00
Mark 90e5d243be irq: fix I/O APIC problem for Ryzen systems 2020-09-18 14:21:55 +03:00
Mark bb5ff71a79 con: Add early vesa fbcon 2020-09-18 13:22:38 +03:00
Mark 7438ee768f Use yboot2 (My new rust-based EFI loader) 2020-09-17 23:53:56 +03:00
Mark fa743391a4 Remove old yboot 2020-09-17 23:43:24 +03:00
Mark e91101d79e Bump yboot version 2020-09-08 23:56:36 +03:00
Mark 53625fce71 boot: move yboot data to C struct 2020-09-08 23:54:58 +03:00
Mark ab3b3afcc5 boot: fix (?) memory corruption problems with EFI 2020-09-06 20:46:27 +03:00
Mark 559e1156f1 boot: extract yboot initrd pointer 2020-09-05 02:19:39 +03:00
Mark c3f23032f0 boot: yboot protocol change: memory map
Memory map is now a part of boot protocol structure.
The change was caused by UEFI placing this boot structure
(as part of yboot's data section) very high in physical memory,
above kernel's mapped 4GiB range, so kernel had no way of
accessing it. It's not the best solution, but will work for sure.
2020-09-05 02:08:52 +03:00
Mark fb7e385a05 mman: (fixme?) hack to prevent memory corruption 2020-09-05 00:56:28 +03:00
Mark 7d3a0d58dc boot: add support for yboot protocol 2020-09-04 01:36:04 +03:00
Mark 0d39253c1e boot: get RSDP address from multiboot2 2020-09-01 23:47:55 +03:00
Mark 158c181c54 mman: allow CoW to fork pages when accessing from kernel 2020-09-01 23:47:03 +03:00
Mark 2ff4dca8c4 acpi: add a way to early define RSDP location 2020-09-01 23:46:18 +03:00
Mark d91a9114c7 fs: add readlink() feature to per-process links 2020-09-01 19:19:26 +03:00
Mark d83b93075c fs: add umask to vfs_ioctx 2020-09-01 18:07:19 +03:00
Mark 074862b9ee api/io: readlinkat 2020-08-30 12:44:22 +03:00
Mark e0f0087ccc mman: rewrite physical memory manager
Better protection of reserved memory regions,
merged "pool" allocation functions into main
memory manager
2020-08-23 22:59:29 +03:00
Mark 76ee873cb4 ext2: add lseek and L2 read support 2020-08-23 13:26:24 +03:00
Mark b6e47c5154 Use off_t for struct stat st_size 2020-08-23 13:23:53 +03:00
Mark d6f40d482a Reenable MSI handler 2020-08-23 13:22:56 +03:00
Mark 4f1ff91e17 Add dumb module unloading 2020-08-20 17:29:43 +03:00
Mark 8ced5eb98d Simplify headers a bit 2020-08-11 17:00:14 +03:00