xv6-simplified 0.1
简化版xv6
|
系统调用sys_exec会调用的exec()函数,以及其他辅助函数 More...
#include "include/types.h"
#include "include/riscv.h"
#include "include/defs.h"
#include "include/elf.h"
#include "include/fat32.h"
#include "include/param.h"
#include "include/proc.h"
Functions | |
int | flags2perm (int flags) |
获取页表的权限位并根据已有权限增添可执行/可写权限 | |
int | exec (char *path, char **argv) |
exec系统调用,执行path指向的文件,携带argv作为参数 | |
系统调用sys_exec会调用的exec()函数,以及其他辅助函数
int exec | ( | char * | path, |
char ** | argv | ||
) |
exec系统调用,执行path指向的文件,携带argv作为参数
path | 执行的文件路径 |
argv | 携带的参数 |
int flags2perm | ( | int | flags | ) |
获取页表的权限位并根据已有权限增添可执行/可写权限
flags | 程序的flags字段 |