shithub: riscv

Download patch

ref: c8e25d2a18c0395431abc5818a1d2f0561b0181f
parent: 7828ffb8a486e188b61394436a434e8cae4fd487
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 17 11:21:22 EDT 2022

kernel: simplify notify() adding common popnote() function

Handlin notes is common for all architectures
except how the note has to be pushed on the user
stack.

This change adds a popnote() function that returns
only the note string or nil if the process should
not be notified (no notes or user notes hold off).

Popnote() also handles common errors like notify
during note handling or missing note handler and
will suicide the process in that case.