henesyinit from p9fd787fda5 years agoHistory
22 lines · 365 B · C
RawDownload
#include <u.h>#include <libc.h>#include <ureg.h> int	__noterestore(void); voidnotejmp(void *vr, jmp_buf j, int ret){	struct Ureg *r = vr; 	/*	 * song and dance to get around the kernel smashing r3 in noted	 */	r->r4 = ret;	if(ret == 0)		r->r4 = 1;	r->r5 = j[JMPBUFPC] - JMPBUFDPC;	r->pc = (ulong)__noterestore;	r->sp = j[JMPBUFSP];	noted(NCONT);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t