the patch i posted yesterday was wrong. i forgot about automatic address assigment with segattach. this works, but perhaps it would be better to round va before checking if va == 0?
/n/quanstro//sys/src/9/port/segment.c:642,648 - segment.c:642,648
Segment *s, *os;
Physseg *ps;
- if((va !=0 && va < BY2PG) || va >= USTKTOP)
+ if(va != 0 && va >= USTKTOP)
error(Ebadarg);
validaddr((ulong)name, 1, 0);
- erik
