Commit Graph

4 Commits

Author SHA1 Message Date
JingXuan_Wei bb99d3f6ed
feat(kexec & initram):Add kexec and initram support for x86 architecture (#1303)
- Support embedding initram and using Ramfs as the file system for extracting initram
- Support kexec series system calls, including load series and reboot
- Support u-root as the root file system to boot in Go language
- Add sysfs such as boot_crams and memmap
- Add a series of peripheral system calls related to the above

Signed-off-by: JensenWei007 <jensenwei007@gmail.com>
2025-10-30 13:32:40 +08:00
LoGin 1875b2feb0
fix(procfs): 修复进程名称显示问题 (#1245)
* fix(procfs): 修复进程名称显示问题

修改ProcessControlBlock::generate_name函数,使其只返回可执行文件的basename,
而不是完整的路径和所有参数。这样/proc/*/status中显示的进程名称将符合
Linux的行为规范。

例如:/bin/busybox 进程将显示为 "busybox" 而不是 "/bin/busybox -/bin/busybox sh --login"

Signed-off-by: longjin <longjin@DragonOS.org>

* refactor(process): 简化进程名称生成逻辑

移除`generate_name`函数中未使用的`args`参数,简化代码逻辑。

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
2025-08-03 23:05:23 +08:00
linfeng cd10e69927
feat: add execveat syscall (#1240)
Signed-off-by: Godones <chenlinfeng25@outlook.com>
2025-07-27 16:10:25 +08:00
DoL 326cf3e0a3
refactor(process): 重构process下的系统调用 (#1184)
* refactor(process):迁移geteuid系统调用

* refactor(process):迁移getegid系统调用

* refactor(process):迁移getgid系统调用

* refactor(process):迁移getpgid系统调用

* refactor(process):迁移getpid系统调用

* refactor(process):迁移getppid系统调用

* refactor(process):迁移getsid系统调用

* refactor(process):迁移gettid系统调用

* refactor(process):迁移getuid系统调用

* refactor(process):迁移set_tid_address系统调用

* refactor(process):迁移setfsgid系统调用

* refactor(process):迁移setfsuid系统调用

* refactor(process):迁移setgid系统调用

* refactor(process):迁移setpgid系统调用

* refactor(process):迁移setresgid系统调用

* refactor(process):迁移setresuid系统调用

* refactor(process):迁移setsid系统调用

* refactor(process):迁移setuid系统调用

* refactor(process):删除部分已迁移的syscall(id相关)的原有部分

* refactor(process):make fmt

* refactor(process):迁移sys_get_rusage系统调用

* refactor(process):迁移exit exit_group 系统调用

* refactor(process):删除重构syscall下的mod中的全架构条件编译

* refactor(process):迁移sys_wait4系统调用

* refactor(process):迁移sys_getrlimit sys_prlimit64 系统调用

* make fmt

* refactor(process):迁移sys_uname系统调用

* fix(ipc):修复rebase时的错误冲突

* refactor(process):修改已迁移的系统调用的handle参数from_user-->frame

* refactor(process):迁移execve系统调用

* refactor(process):迁移clone系统调用

* refactor(process):迁移fork、vfork系统调用

* refactor(process):删除原有syscall文件,将迁移后的文件夹重命名为syscall

* refactor(process):修复条件编译错误
2025-06-04 21:29:51 +08:00