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