From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4003:c0f::233; helo=mail-ot0-x233.google.com; envelope-from=sigmaepsilon92@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C6FC8202E5E7A for ; Thu, 2 Nov 2017 23:57:57 -0700 (PDT) Received: by mail-ot0-x233.google.com with SMTP id k10so1680619otb.0 for ; Fri, 03 Nov 2017 00:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0I6zJWXRRMaq0pSt64takTph3t9EXOQZrpzra25ork0=; b=QaWscEr6tmxxkZfofD+J9TT1yam+jHpl0531b6FYrSs6a6Icfxv5kbc6uKCvPC3Qjm xf40WkMbJ9cSjDFZ5fS3AHjFHLJVWarBsqiLB94rWlRYZXAMQwbDZLpTsBSqC4HrHgW1 uVa+0uGpKHkHxr6rYyAcIpd/o8T7MIpHz6XTLZ7nMwYfFxyitXzS+xJw2VGtg8BBh9+Z Hcln+wiEgZdSuEXvdHvyj7aphelwk1kOelitGkBpEnbl2Lom4Kt83swIFkKgRexO0xQM BqwclfUhdmWQPLP3j25bhtrzrsZ0jfbf0afjgVNmEueWmC2msCfHJfxZPLyrn34qAhZh ClLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0I6zJWXRRMaq0pSt64takTph3t9EXOQZrpzra25ork0=; b=g6y+ZO8Ty6OrRW2RVN76DNHEwin/11cV2Bjx3h8qPmHzMDOyidysHvZRtREIeXVfwU tv8QuGtUoBXZWZ1Ka0aExHIetKDwWO4kw/uXr5houY+CLHNZvyxQINQLc/vLpSho0QAF OUBZrnrSRXjgQEYpB5kvF3pYa8DCCnIcLyGcuSSmKpVzBJKBYYn8X9X14WzZ3gpUrN0P 6J19BhqWzIRiFQGtBt2H7XHmeD2soHpT5pcxfSA+uQ/IolPP5cU6aLiQq2wy8GwoIeu7 d6scNuNGMtyEFVNVkUkycd4GEki7fi9Q0CpQEC7kvpQEvCQMgF+YIuKjKsfwNnnB/Sky k3Yw== X-Gm-Message-State: AJaThX7NWafCMgp5vM6S0hYjXfaAmI0Sy2G0PQ08yigemUbho5LkUkJT 38sO87kInA9Fiegv1VucYtHHfOI3u2/xWkiqQzA= X-Google-Smtp-Source: ABhQp+QgLs88J4+MaMOroIFA9ngYdytP/A5zXe3I0AUtxp5GvBePA3F0ri7BtcqceX60HuFqFXjdD7uD/dDM2SYRc4c= X-Received: by 10.157.66.45 with SMTP id q45mr3559138ote.150.1509692511823; Fri, 03 Nov 2017 00:01:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.33.48 with HTTP; Fri, 3 Nov 2017 00:01:51 -0700 (PDT) In-Reply-To: References: <80AC2BAA3152784F98F581129E5CF5AFA4635665@ORSMSX114.amr.corp.intel.com> From: Michael Zimmermann Date: Fri, 3 Nov 2017 08:01:51 +0100 Message-ID: To: Blibbet Cc: "Jayaprakash, N" , "Richardson, Brian" , Thiebaud Weksteen , "python-dev@python.org" , "edk2-devel@lists.01.org" Subject: Re: Official port of Python on EDK2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2017 06:57:58 -0000 Content-Type: text/plain; charset="UTF-8" > FYI, this library adds thread support to UEFI: > > https://github.com/Openwide-Ingenierie/GreenThreads-UEFI IMO this library has some crucial problems like changing the TPL during context switching. For my project "EFIDroid" I've invested many months analyzing, testing and implementing my own threading implementation based on LK(LittleKernel, a MIT licensed project) threads and get/set -context. The result is a pretty stable implementation which can even be used in UEFI drivers: https://github.com/efidroid/uefi_edk2packages_EFIDroidLKLPkg/tree/master/UEFIThreads I'm currently using this lib for my LKL(LinuxKernelLibrary) port to be able to use linux touchscreen drivers in UEFI - so you could say it has been well tested. The only "problem" is that it only supports ARM right now and that the get/set context implementation was copied (and simplified) from glibc which means that this part is GPL code. Thanks Michael Zimmermann On Thu, Nov 2, 2017 at 8:37 PM, Blibbet wrote: > On 11/02/2017 09:41 AM, Jayaprakash, N wrote: >> Would you consider adding thread support in this port of Python for > EDK2 shell? > > FYI, this library adds thread support to UEFI: > > https://github.com/Openwide-Ingenierie/GreenThreads-UEFI > > Note that the library is GPLv2, ...but the author (a 1-person project) > could be asked to relicense to BSD to fit into Tianocore. > > Note that library is currently Intel x64-centric, and contains a bit of > assembly. Will need some ARM/RISC-V/x86 contributions. > > HTH, > Lee Fisher > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel