summaryrefslogtreecommitdiffstats
path: root/kernel.c
blob: a0f5d2247f922d7eed05222ae011739e35c5b0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12

void _main(void)
{
    static unsigned char kernel_stack[16 * 1024] = {0};
    register void * stack = &kernel_stack;
    asm volatile("mr 1,%0" :: "r" (stack) );
   
    while(1)
    {
	//asm volatile("wait");
    }
}
OpenPOWER on IntegriCloud