Added error_assert() macro and used branch hinting
authorDavide Libenzi <dlibenzi@google.com>
Mon, 30 Nov 2015 04:04:17 +0000 (20:04 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Dec 2015 21:27:06 +0000 (16:27 -0500)
commit69b7e57065ba92d02f9aef2a305d8b96ef074e9e
tree6bb079ffaaeb747fe40eba37ca6ffa3333716623
parent61615dbdfb0941536a7a83ef6247abbca25f5e1b
Added error_assert() macro and used branch hinting

Added error_assert() macro and used branch hinting. The error assert
macro issues and error() in case of failed assertion, instead of a panic().

Signed-off-by: Davide Libenzi <dlibenzi@google.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/assert.h