Specify a small alloca_cutoff (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 11 Jul 2016 19:43:22 +0000 (15:43 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 19 Jul 2016 15:43:10 +0000 (11:43 -0400)
commitdf1135d0583e55fd85f0dab460453af4511159cf
tree032f2e51de4b93663cc3333d0aff50f0f23096b4
parent3ac16b3460fa8c3291a63a8f9b1fffa45a68b99d
Specify a small alloca_cutoff (XCC)

Glibc uses this function to determine if it can do an alloca.  Given that
we don't know what 2LS thread we're in, or even if we're in vcore context,
we don't know much about the stack size of the caller.

I'm flexible on changing the size, given that the smallest stack we'll
probably deal with is PGSIZE.

Rebuild glibc.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/alloca_cutoff.c [new file with mode: 0644]