Skip to content

lab1运行结果不对 #148

Open
Open
@shiwenlong12

Description

@shiwenlong12

在TCB中加入syscall_times时运行结果[FAIL] not found <get_time OK13047! (\d+)>,在ch3b_sleep中get_time()得到的是0,无法通过测试,去掉syscall_times后其他的都通过了,只有[FAIL] not found ,ch3_taskinfo.rs无法比较syscall_times不能通过,之前有个一样的问题#95

有人回答说是因为TCB里面放一个500大小的数组太大了, 似乎是内存的问题, 你改成5就可以了. btw 似乎这样实现的性能比较低,但是如果改成大小为5的数组的话,ch3_taskinfo.rs 中assert_eq!(1, info.syscall_times[SYSCALL_TASK_INFO]);SYSCALL_TASK_INFO是410,还是不能通过。

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions