Commit Graph

1676 Commits

Author SHA1 Message Date
94550dd5c6 Add config option for CargoArgs 2024-04-22 15:21:07 +08:00
0c60a2a667 Update docs about the GDB server address 2024-04-22 15:21:07 +08:00
a52e43218e Disable KVM when using GDB 2024-04-22 15:21:07 +08:00
4f575e2028 Fix writev fault when io_vec.len is 0 2024-04-22 15:16:46 +08:00
c778e0c07c Remove redundant empty page in init stack 2024-04-22 15:15:15 +08:00
c335873d12 Enable kernel mode unit tests in kernel threads 2024-04-22 13:57:22 +08:00
57cb922253 Increase user stack size 2024-04-22 10:40:46 +08:00
4851204059 Implement a safe and race-free Waiter 2024-04-17 11:07:07 +08:00
dac41e9a2f Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex 2024-04-17 08:51:59 +08:00
92a9f5616e Fix error codes in bind, listen, and accept 2024-04-12 14:39:54 +08:00
346887ace5 Fix error codes in UDP sendto and recvfrom 2024-04-12 14:39:54 +08:00
00cfdf86c8 Fix error codes in TCP sendto and recvfrom 2024-04-12 14:39:54 +08:00
51080c1925 Fix error codes in get{sock,peer}name 2024-04-12 14:39:54 +08:00
8b094454aa Use From<IpEndpoint> for SockAddr (not TryFrom) 2024-04-12 14:39:54 +08:00
b53980da25 Add a framework for regression tests 2024-04-12 14:39:54 +08:00
e8a991048f Fix typos in comments 2024-04-12 13:28:08 +08:00
726632ad70 Update a-100-line-kernel.md 2024-04-11 17:31:48 +08:00
c3c6b0c19d Use Dma APIs for virtio-block driver 2024-04-11 15:22:18 +08:00
d8a841f88a Add DmaBuf for DMA-capable memory areas 2024-04-11 15:22:18 +08:00
a60a8ad3e1 Support big file for Ext2 2024-04-10 13:44:12 +08:00
bd8be26b30 Access the console device table with IRQ disabled 2024-04-10 12:14:28 +08:00
e4fd51bc6f sigretrun --> sigreturn 2024-04-09 22:06:57 +08:00
63be797c2d Check if we truly pass the tests in auto test 2024-04-09 16:59:21 +08:00
e3cb4d25e3 Fix the kernel stack alignment 2024-04-09 16:59:21 +08:00
afc4bf7520 Modify the behavior of mapping segment vmo 2024-04-08 18:54:46 +08:00
33c8727a13 Introduce XArray and refactor the COW mechanism of Vmo 2024-04-08 18:54:46 +08:00
233e1fac98 Add more getter methods for VmSpace 2024-04-08 18:54:46 +08:00
acf956fa03 Fix the kernel page fault handler 2024-04-08 17:02:38 +08:00
849c6e3259 Introduce PHYS_MEM_VADDR_RANGE 2024-04-08 17:02:38 +08:00
02e4cdc80e Fix kernel stack's underflowing initial rsp 2024-04-07 18:05:36 +08:00
4dd707488d Fix a code format error in the trap handler 2024-04-03 15:19:08 +08:00
e7e613db4e Implement kernel page fault handler 2024-04-03 13:34:20 +08:00
97974c9cdc Bump version in github workflows to 0.4.2 2024-04-03 08:21:15 +08:00
3c31ec35cf Fix empty backtraces when panicking 2024-04-03 08:20:15 +08:00
198363c2d3 Speed up stack unwinding 2024-04-03 08:17:58 +08:00
6335387104 Move mongoose source files to build/ 2024-04-02 17:58:03 +08:00
bdf5e3a578 Fix the failing book publish CI action 2024-04-02 17:47:04 +08:00
54109e7e9e Remove IRQ guard in preempt()
Fix #478.
Kernel preemption is not taken into account currently.
2024-04-02 09:03:59 +08:00
6dec96c7e1 Respond to Cargo metadata format change 2024-04-01 20:17:48 +08:00
10690063eb Reimplement reading cstring from user space 2024-04-01 17:31:15 +08:00
6ab6648b33 Bump version to 0.4.2
Add GDB in OSDK Dockerfile
2024-04-01 17:26:49 +08:00
1d5744ae80 Add unit test for OSDK debug functions 2024-04-01 17:26:49 +08:00
45a7aba5c9 Add docs for OSDK debug and run 2024-04-01 17:26:49 +08:00
35604198cd Update introductions to build and test instructions.
Add instructions for debugging via VS Code.
2024-04-01 17:26:49 +08:00
88099df008 Add GDB targets in Makefile 2024-04-01 17:26:49 +08:00
e616eb3a4c Add unix sockets for QEMU GDB in OSDK run command 2024-04-01 17:26:49 +08:00
28127850aa Add debug subcommand in OSDK 2024-04-01 17:26:49 +08:00
5fd3b1bc2f Support GDB server for cargo osdk run
Feature: generate launch config for debugging via VS Code.
2024-04-01 17:26:49 +08:00
a18fc9eb25 Write time to user only if addr is not zero 2024-04-01 13:58:18 +08:00
8f51259a10 Remove unused fields from waiter 2024-03-29 15:04:29 +08:00