Skip to content

Commit 5b6824a

Browse files
author
ipacman
committed
supplement usertests.c with usertests2.c which always passes. The only difference is call order of offending function in user space.
1 parent 1a44c05 commit 5b6824a

File tree

4 files changed

+30419
-27297
lines changed

4 files changed

+30419
-27297
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ UPROGS=\
162162
$U/_sh\
163163
$U/_stressfs\
164164
$U/_usertests\
165+
$U/_usertests2\
165166
$U/_grind\
166167
$U/_wc\
167168
$U/_zombie

README-opensbi-unmatched.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ I've met my match with the failure of one particular test on unmatched: sbrkmuch
114114

115115
- occasionally (unmodified). Run the test a few times in a row from the command prompt.
116116
- when run standalone (via command line parameter to just run sbrkmuch).
117-
- when its moved from its normal compiled address (!) even slightly. I'm including a modified version of usertests
118-
called usertests2 that simply reverses the order of two tests (sbrkmuch and sbrkbasic) and it passes all the time.
117+
- when its moved or called differently from its original version.
118+
119+
Please refer to usertests2 which reverses the call order of sbrkbasic and sbrkmuch with no other changes. Both versions are on the supplied ramdisk.
120+
119121
- of course, in the original MIT QEMU emulation.
120122

121123
I've tried everything I can think of to debug this and am close to saying there must be some unpublished Fu740 fault involving

0 commit comments

Comments
 (0)