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/ppc/trap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/src/9/ppc/trap.c') diff --git a/sys/src/9/ppc/trap.c b/sys/src/9/ppc/trap.c index 8c7965481..bc4b1b0c5 100644 --- a/sys/src/9/ppc/trap.c +++ b/sys/src/9/ppc/trap.c @@ -774,14 +774,14 @@ noted(Ureg* ureg, ulong arg0) break; default: - up->lastnote.flag = NDebug; + up->lastnote->flag = NDebug; /* fall through */ 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); } up->fpstate &= ~FPillegal; if (up->fpstate == FPactive) -- cgit v1.2.3