From 91f79ce9fab7c9920b6f331ca074d58c17755fc9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 17 Aug 2022 17:38:46 +0000 Subject: kernel: allocate notes in heap de-bloat the proc structure by allocating notes with on the heap instead of embedding them in the proc structure. This saves around 640 bytes per process. --- sys/src/9/zynq/trap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/src/9/zynq') diff --git a/sys/src/9/zynq/trap.c b/sys/src/9/zynq/trap.c index 0fc34a573..d2349906a 100644 --- a/sys/src/9/zynq/trap.c +++ b/sys/src/9/zynq/trap.c @@ -395,13 +395,13 @@ noted(Ureg *ureg, ulong arg0) break; default: - up->lastnote.flag = NDebug; + up->lastnote->flag = NDebug; case NDFLT: qunlock(&up->debug); - if(up->lastnote.flag == NDebug) - pprint("suicide: %s\n", up->lastnote.msg); - pexit(up->lastnote.msg, up->lastnote.flag != NDebug); + if(up->lastnote->flag == NDebug) + pprint("suicide: %s\n", up->lastnote->msg); + pexit(up->lastnote->msg, up->lastnote->flag != NDebug); } } -- cgit v1.2.3