[NSWI004] Is it test error or knowledge error?
Jura Pelc
jirik.pelc1998 at gmail.com
Tue Oct 13 16:31:37 CEST 2020
for test basic/stack_pointer I got following output.
$sp unexpectedly changed (0x800003e8 => 0x800003e8)
As far as I understand this test and stack I think that last line should
have != instead ==
ktest_assert(sp1 != sp2, "$sp unexpectedly changed (0x%x => 0x%x)", sp1, sp2
);
Is is this case or should I get back to drawing board and self-study.
original code in upstream
uintptr_t sp1 = value;
uintptr_t sp2 = value;
sp1 = debug_get_stack_pointer();
sp2 = debug_get_stack_pointer();
dprintk("sp1 = %x\n", sp1);
dprintk("sp2 = %x\n", sp2);
ktest_assert_in_range("$sp must be in mainmem", sp1, 0x80000000,
0x80100000);
ktest_assert(sp1 == sp2, "$sp unexpectedly changed (0x%x =>
0x%x)", sp1, sp2);
--
S pozdravem Jiří Pelc
Matematicko-fyzikální fakulta
Univerzita Karlova
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201013/aac67118/attachment.htm>
More information about the NSWI004
mailing list