linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kkonaka@mac.com
To: luciano@lsd.di.uminho.pt, linux-c-programming@vger.kernel.org
Subject: Re: makecontext(3)
Date: Wed, 30 Jul 2003 09:49:29 -0400	[thread overview]
Message-ID: <la1xw8m8eu.wl@mac.com> (raw)
In-Reply-To: <20030729113916.GA3501@lsd.di.uminho.pt>

howdy thanks,

> > makecontext() appear to have to be 
> > preceded by getcontext() to completely initialize its arg
> I assume that the getcontext() is needed to get values for registers
> (cs, ds, es, gs, ...).

hmm., that certainly is part of the answer :) but, why makecontext()
doesn't/cannot fill up some appropriate(??) values automatically into
such fields? -- it looks to me the machine context makecontext() have
to fabricate is simply the one to start calling the given function as
one of its argument (= its second arg: "void *func()"). and it appears
to me that this new machine context doesn't have anything to do with
that of the caller. this make me think getcontext() may not be
necessary. -- ??  (well, obviously I'm missing something)

kenji

      reply	other threads:[~2003-07-30 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-28 19:06 makecontext(3) kkonaka
2003-07-29 11:39 ` makecontext(3) Luciano Miguel Ferreira Rocha
2003-07-30 13:49   ` kkonaka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=la1xw8m8eu.wl@mac.com \
    --to=kkonaka@mac.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=luciano@lsd.di.uminho.pt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).