9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] exec() question
@ 2013-03-15 17:03 erik quanstrom
  2013-03-15 20:35 ` cinap_lenrek
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2013-03-15 17:03 UTC (permalink / raw)
  To: 9fans

i'm sure i'm missing something obvious here, but exec has something
like this

	up->seg[ESEG] = newseg(SG_STACK, TSTKTOP-USTKSIZE, TSTKTOP/BY2PG);

(some versions may not have /BY2PG, but that's beside the point.)

what happens if there is already a segment at TSTKTOP-USTKSIZE
that has been faulted in?

i would think that argc, argv could end up in the wrong physical page.

- erik



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-17  1:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-15 17:03 [9fans] exec() question erik quanstrom
2013-03-15 20:35 ` cinap_lenrek
2013-03-15 20:41   ` cinap_lenrek
2013-03-15 21:48     ` erik quanstrom
2013-03-15 21:51       ` erik quanstrom
2013-03-15 22:48       ` cinap_lenrek
2013-03-15 23:57         ` erik quanstrom
2013-03-16  0:11           ` cinap_lenrek
2013-03-17  1:56             ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).