[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH 1/1] Set highest priority to pthread constructor


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 30 Oct 2019 22:37:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LPuuKlslPi2olffSQVYsEeV+J8AUXDENeMrwnlE1nfA=; b=LL878/dbXzftrCVv6Mm8jxgQkJnWFhbQ5WWVfHU7ZuSE9G+76k/54Rojxl/RH9Nb8YZDMSsN4dBsPE3qGG+yEyxp9mLTBTLODZYE7oF9zMfAjRxWLT7iiMLeBP3a7UqeP/ZUXFct1mU3rR5UQH6hcHjbLP6eOqL6+D3Vyw71EJ6d22CDWOO4L6gSvZ+suUUSieR9T/s9wJgCe/nNbxnUWlmsc5sXUukKGSlT62p9LOjQfhCiW+H4bn3JSIs25dsLTxjeejTUoandoupWVQioURJ9rAh++xruRdps9W/6raG62zpsaXpDqLU5z5JOLs/WwLJ/hrYnb+3WS6B8hzVZNw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=enkkSMBIu35KFDOc+BiCbiT/XwrjmpauhgwM5vZhCgjFI3ppXlhJ0DOVnwVWghGZOCVQz2Pg7mwjPTijnh5qPgkDzfW7dPPFpCh2AKOK+y51HsT9zGxlmASF7nGv8rh7eO5SibBJ8wOC1CAxCWeYB/f2+Pf3AOSVw+0sg4h0oI8NFFzPX2VdiciRk3GDwzVf61dFWniRBb9bYgJ1+hltv9W2uXpnWwrHpnqSeuS8HSDbjj27/8NCDgqNT2PPpmg5WrFk2cKokaBtmLA8D4W7LBVcwAf3/Fm2ZDM6/pVRIS4VhuPfrTyH81cPS66rJRoDDC/DFwDzx04W3sqGwNLggA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "costin.lupu@xxxxxxxxx" <costin.lupu@xxxxxxxxx>
  • Delivery-date: Wed, 30 Oct 2019 22:38:09 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVj3KujqbqFO1gg06UbDvaNigZHw==
  • Thread-topic: [UNIKRAFT/PTHREAD-EMBEDDED PATCH 1/1] Set highest priority to pthread constructor

Other libraries might use the default constructor attribute and expect pthreads
to be initialised. We set the highest priority(101) to the pthread constructor.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 pte_osal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pte_osal.c b/pte_osal.c
index 23dcd01..df24bed 100644
--- a/pte_osal.c
+++ b/pte_osal.c
@@ -58,7 +58,7 @@ typedef struct {
  *
  ***************************************************************************/
 
-int __constructor pthread_constructor(void)
+int __attribute__((constructor(101))) pthread_constructor(void)
 {
        uk_pr_debug("pthread-embedded constructor\n");
        return pthread_init();
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.