aboutsummaryrefslogtreecommitdiff
path: root/sys/rt/stack.c
blob: 5ab7a8af38ad3cde0594f567b205891247729ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <u.h>
#include <arch/atomic.h>

/* unprefixed names determined by gcc */
uintptr __stack_chk_guard;

void
rt·guardstack(void)
{
	__stack_chk_guard = (uintptr)&__stack_chk_guard*1103515245;
}

void
__stack_chk_fail(void)
{
	atomic·crash();
}