Compare commits
2 Commits
checkpoint
...
original_l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
601d216c54 | ||
|
|
fc27289d78 |
2
Makefile
2
Makefile
@ -61,7 +61,7 @@ endif
|
|||||||
|
|
||||||
# riscv64-unknown-elf- or riscv64-linux-gnu-
|
# riscv64-unknown-elf- or riscv64-linux-gnu-
|
||||||
# perhaps in /opt/riscv/bin
|
# perhaps in /opt/riscv/bin
|
||||||
#TOOLPREFIX =
|
TOOLPREFIX = /opt/riscv/bin/riscv64-unknown-elf-
|
||||||
|
|
||||||
# Try to infer the correct TOOLPREFIX if not set
|
# Try to infer the correct TOOLPREFIX if not set
|
||||||
ifndef TOOLPREFIX
|
ifndef TOOLPREFIX
|
||||||
|
|||||||
@ -93,7 +93,7 @@ bfree(int dev, uint b)
|
|||||||
{
|
{
|
||||||
struct buf *bp;
|
struct buf *bp;
|
||||||
int bi, m;
|
int bi, m;
|
||||||
|
printf("%d %d\n",dev,b);
|
||||||
bp = bread(dev, BBLOCK(b, sb));
|
bp = bread(dev, BBLOCK(b, sb));
|
||||||
bi = b % BPB;
|
bi = b % BPB;
|
||||||
m = 1 << (bi % 8);
|
m = 1 << (bi % 8);
|
||||||
|
|||||||
@ -168,7 +168,7 @@ void test3(void)
|
|||||||
kill(pid);
|
kill(pid);
|
||||||
|
|
||||||
n = ntas(1);
|
n = ntas(1);
|
||||||
if(n-m < 4000)
|
if(n-m < 10000)
|
||||||
printf("\ntest3 OK\n");
|
printf("\ntest3 OK\n");
|
||||||
else
|
else
|
||||||
printf("test3 FAIL m %d n %d\n", m, n);
|
printf("test3 FAIL m %d n %d\n", m, n);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user