Mercurial > sarpn
view include/die.h @ 12:40af39d064fa
Refactor the arch code
Note: the code, as it is now, does not run even though it compiles
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 07 Apr 2011 22:07:20 -0400 |
parents | |
children |
line wrap: on
line source
#ifndef __DIE_H #define __DIE_H #define die() do { \ asm volatile( \ "SR %r1, %r1 # not used, but should be zero\n" \ "SR %r3, %r3 # CPU Address\n" \ "SIGP %r1, %r3, 0x05 # Signal, order 0x05\n" \ ); \ for(;;); \ } while(0) #endif