shithub: riscv

Download patch

ref: 7ba3be82a713597a632ebfc8ae25f0bbed21cd31
parent: b4f56f1f4e8eff3965457ef9492528ee820e59bd
author: cinap_lenrek <[email protected]>
date: Sun Aug 9 17:48:58 EDT 2015

kernel: move "setargs" field in Proc structure after "nargs" and "args"

--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -651,6 +651,7 @@
 	char	*user;
 	char	*args;
 	int	nargs;		/* number of bytes of args */
+	int	setargs;	/* process changed its args */
 	Proc	*rnext;		/* next process in run queue */
 	Proc	*qnext;		/* next process on queue for a QLock */
 	QLock	*qlock;		/* addr of qlock being queued for DEBUG */
@@ -765,8 +766,6 @@
 
 	uintptr	qpc;		/* pc calling last blocking qlock */
 	QLock	*eql;		/* interruptable eqlock */
-
-	int	setargs;	/* process changed its args */
 
 	void	*ureg;		/* User registers for notes */
 	void	*dbgreg;	/* User registers for devproc */