vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

devproc.ed (853B)


      1 /^$/a
      2 extern uchar _end[];	// Plan 9 VX
      3 
      4 .
      5 ,s!(ulong)end!(ulong)_end!g
      6 g/CMfair/d
      7 g/CMunfair/d
      8 g/edf/d
      9 g/^profclock/ s/Timer \*)/Timer *t)/
     10 g/^procgen/ s/int,/int _,/
     11 g/^_proctrace/ s/Tevent/int/
     12 g/^[a-z]/ s/(void \*)/(void *_)/
     13 ,s!lock(f)!lock(\&f->ref.lk)!g
     14 ,s!lock(s)!lock(\&s->ref.lk)!g
     15 ,s!lock(i)!lock(\&i->ref.lk)!g
     16 ,s!ref(tc)!ref(\&tc->ref)!g
     17 ,s!ref++!ref.ref++!g
     18 ,s!ref(ps->image)!ref(\&ps->image->ref)!g
     19 /^parsetime/-1,/^	return nil/+1d
     20 /^	vlong time;/d
     21 /^	char \*e;/d
     22 /^	void (\*pt)/d
     23 /^	CMperiod,/,/^	CMevent,/d
     24 /^	CMperiod,/,/^	CMevent,/d
     25 /^	case CMperiod:/,/^	case CMevent:/+4d
     26 g/real time/d
     27 /if(s->flushme)/d
     28 d
     29 ,s/MACHP(0)->ticks/msec()/g
     30 /{Qprofile}/a
     31 	"syscall",	{Qsyscall},	0,			0400,
     32 .
     33 /^profclock/;#
     34 /^{/+1,/^}/-1d
     35 /^procopen/;#
     36 /^procread/;#
     37 /Confmem/d
     38 /KZERO/ s/KZERO/USTKTOP/
     39 +2,/case .*:/-1c
     40 		error("no kernel memory access");
     41 .