From 79e1db2da13b0d9aafe39831bdb0c1b7940aab0c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 4 Dec 2008 08:30:54 -0800 Subject: add stub routines stackalloc() and stackfree(). run oldstack on g0's stack, just like newstack does, so that oldstack can free the old stack. R=r DELTA=53 (44 added, 0 deleted, 9 changed) OCL=20404 CL=20433 --- src/runtime/runtime.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index e37786e4fb..a0cbac359d 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -277,6 +277,8 @@ G* malg(int32); void minit(void); Func* findfunc(uint64); int32 funcline(Func*, uint64); +void* stackalloc(uint32); +void stackfree(void*); /* * mutual exclusion locks. in the uncontended case, -- cgit v1.3-5-g9baa