linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Zhu Tom-a2289c <A2289c@motorola.com>
Subject: Re: [uml-devel] NPTL pthread_create() cannot work.
Date: Fri, 5 Aug 2005 17:54:33 +0200	[thread overview]
Message-ID: <200508051754.34058.blaisorblade@yahoo.it> (raw)
In-Reply-To: <AD266326EC54D9118CE700110A9E2BE205EA47EA@zch07exm01.corp.mot.com>

On Friday 05 August 2005 09:34, Zhu Tom-a2289c wrote:
> 1.
> I still fail to use these patches on git3/4,

Hm, ok... there will be probably some trivial reject...I cannot update those 
patches right now since I haven't enough bandwidth.

Just to make sure: you got errors applying until TLS patches, right? Anyhow, 
to get the TLS changes only, you need to apply only the following 4 patches:

uml-clean-arch_switch
uml-tls-support-sc-tables
uml-add-tls-support
uml-add-tls-support-debug

They almost apply even on 2.6.12, so should apply for sure on 2.6.13-rc4.

And leave out uml-add-tls-support-flush-empty, it's still broken for now.

> so, I just made my local fix on 2.6.12-rc4.

> pthread_create works goods.
> and then find your fix patch include it, seems my fix
> is not wrong. :-)
Yes, I was probably missing some sleep. Only difference in my patches is that 
return value is set to set_tls_entry return value (and this matches with 
i386).

Does the system boots ok in that config, including sshd and apps like MySQL / 
Apache / Java ? With the previous version of the patches, no TLS data would 
work for sure... and sshd still doesn't work on my Sarge (which seems 
particularly picky - other people got success with other distros with much 
less changes).
> 2.
> in tls.c,
> there are some code looking up the tls_arry

> for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) {
> shall we use "idx <= GDT_ENTRY_TLS_MAX"?
Good catch, thanks, even if this isn't going yet to be the *final* fix (since 
we aren't likely using the last slot).
> since
> #define GDT_ENTRY_TLS_MAX 	(GDT_ENTRY_TLS_MIN + GDT_ENTRY_TLS_ENTRIES - 1)

> Thanks,
> Tom
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-08-05 15:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05  7:34 [uml-devel] NPTL pthread_create() cannot work Zhu Tom-a2289c
2005-08-05 15:54 ` Blaisorblade [this message]
2005-08-07 21:49   ` Rob Landley
  -- strict thread matches above, loose matches on Subject: below --
2005-08-09  3:12 Zhu Tom-a2289c
     [not found] <AD266326EC54D9118CE700110A9E2BE205D707D7@zch07exm01.corp.mot.com>
2005-08-03 18:03 ` Blaisorblade
2005-08-01  1:37 Zhu Tom-a2289c
2005-07-29 11:12 Zhu Tom-a2289c
2005-07-30 18:55 ` Blaisorblade

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=200508051754.34058.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=A2289c@motorola.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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