/***
 * Exception handling test #2
 *
 * Change Log:
 * 2003/10/22 ghort	created
 * 2003/11/03 ghort	cleaned up and integrated
 * 2004/10/25 pallas	updated for new assignment specification
 */

static char *	desc =
	"Exception handling test #2\n"
	"Tests whether the kernel handles the AdES (address error "
	"at store) exception.\n\n";


#include "../../assignment-1.h"
#include "../defs.h"


void
assignment_test (void)
{
	printk (desc);

	/*
	 * Generate AdES.
	 */
	printk ("Generating address error at store, the kernel should\n"
		"either panic or kill the offending thread on the spot...\n");
	* ((volatile int *) 0xdeadbeef) = 0xcafebabe;


	// this statement should not be reached
	printk ("This statement should not have been reached.\n"
		"Test failed...\n");
}

