From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <599f06db0611140158x199f40a6u43f3debcc671ee99@mail.gmail.com> Date: Tue, 14 Nov 2006 10:58:34 +0100 From: "Gorka guardiola" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Creating a custom jmp_buf; libthread implementation question In-Reply-To: <7871fcf50611131933h1b7ee706vc56be7b37cd6b58b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <64c8196ab25721b971e64c96b6f8e065@plan9.jp> <7871fcf50611131933h1b7ee706vc56be7b37cd6b58b@mail.gmail.com> Topicbox-Message-UUID: de277a64-ead1-11e9-9d60-3106f5b1d025 Take a look at the implementation of set_jmp and long_jmp in assembler. Take a look also at the messages about the stack I originated in 9fans not very long (a year?) ago. Once you understand how the stack works, things should be smoother. On 11/14/06, Joel Salomon wrote: > > Where in libthread does the stack get set up, and could somebody > > please give me a high-level overview of what the code is doing? > > Specifically, in create.c, what is newthread doing=97and how? Unless > that is the wrong place to look, in which case I really am lost. > > --Joel > --=20 - curiosity sKilled the cat