summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2007-02-01 03:18:22 +0100
committerMichael Brown2007-02-01 03:18:22 +0100
commitf06059ab97023821429f2853114b9edaeffe3169 (patch)
tree157157412834afeacb8ec3f5535ea176ffab3718
parentAlso print out stack pointer (with optional stack dump) (diff)
downloadipxe-f06059ab97023821429f2853114b9edaeffe3169.tar.gz
ipxe-f06059ab97023821429f2853114b9edaeffe3169.tar.xz
ipxe-f06059ab97023821429f2853114b9edaeffe3169.zip
More assertions
-rw-r--r--src/arch/i386/core/udivmod64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/core/udivmod64.c b/src/arch/i386/core/udivmod64.c
index b4f14b110..faf6fd8c8 100644
--- a/src/arch/i386/core/udivmod64.c
+++ b/src/arch/i386/core/udivmod64.c
@@ -305,6 +305,7 @@ UDItype __udivmoddi4 ( UDItype x, UDItype d, UDItype *r ) {
( struct uint64 * ) _q, ( struct uint64 * ) _r );
assert ( ( x == ( ( d * q ) + (*r) ) ) );
+ assert ( (*r) < d );
return q;
}