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

[Minios-devel] [UNIKRAFT PATCH 1/1] plat/common, plat/linuxu: Solve wrong set_tls_pointer definition in Linuxu


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 27 Nov 2019 16:32:24 +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=zz3Ge91b9t4GxtVcjsb3iywMYiyyxRiugJ07NdwaSTg=; b=gKcUevBXx5vm7Xq7WVDt38EHvgsJEryO13zNl1gVPVstauHDD5IheYL0GrCIjZrszVPdzOniMQVFe09oozK93YntB4XtR9Z4aWfbotzaWJyOIQ8V7VmBSlsrhqFWUIywLngoRtDg9s2VU2bWKKRLCil5F9RWVdRCQPchjlPCFL6An9yaK5U+kvrna8IeGm0nyhQJ64mH3Qa4wMRn98aRdzA0rgyzjmg5qJUoeFdpYUQqcsaTRWVHesOuWf7Xwb1rACDgGIB9WB+x/yQ8EqO90wRssbfJEkbfQCKRDmIe07L+l9BYFt2TiljXNobD2JHdKobtfrr20r/TJz/liUH3JA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dOoOIb/PBYPpLsyLmtfV8bqAYSDxSvNMXiTXNiDoVzqW3ejZBU1XsITYGFzEJDn04lHRQ0hhmOAp0mX82PwAyoSBIQ36sKshshPtp3M2Q01+8NacziePRld3KLvD7kvk+TVHn66d1dDJFQ4fHU4pCHLp/sX9zwI7TUa/MQWWL479myA9wMxGehwrN9TJtYsmf7qFY+Ig9y1CiZhv5vS/ojJ0E61NyF4CQt+kGo6ulHJW0SUgUOHMalN9lkhlLJNOhF6hgkAbidg4GmHmwWQsaahw0deATB0DLQo/rBjOTRkDIzzF+knBMKZFycwtMmdZp1AL1Lgk7F58K5vMCXGf2g==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "santiago.pagani@xxxxxxxxx" <santiago.pagani@xxxxxxxxx>
  • Delivery-date: Wed, 27 Nov 2019 16:32:31 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVpUA/3P5CWM4+QkiaXmF+1JCOEg==
  • Thread-topic: [UNIKRAFT PATCH 1/1] plat/common,plat/linuxu: Solve wrong set_tls_pointer definition in Linuxu

After commit ae683f4, linuxu fails with a GPF due the wrong definition of
set_tls_pointer, it uses the default x86/arm implementation from
/common/include/x86/tls.h, whereas, it should use the definition from
linuxu/include/tls.h.

To solve this, we move plat/linuxu/include/tls.h to
plat/linuxu/inlclude/tls.h and include it in common/tls.h if LINUXUPLAT
is defined.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 plat/common/include/uk/plat/common/tls.h | 4 +++-
 plat/linuxu/include/{ => linuxu}/tls.h   | 0
 2 files changed, 3 insertions(+), 1 deletion(-)
 rename plat/linuxu/include/{ => linuxu}/tls.h (100%)

diff --git a/plat/common/include/uk/plat/common/tls.h 
b/plat/common/include/uk/plat/common/tls.h
index 45659d81..6fb78d24 100644
--- a/plat/common/include/uk/plat/common/tls.h
+++ b/plat/common/include/uk/plat/common/tls.h
@@ -32,7 +32,9 @@
 #ifndef __PLAT_CMN_TLS_H__
 #define __PLAT_CMN_TLS_H__
 
-#if defined(__X86_64__)
+#if defined(LINUXUPLAT)
+#include <linuxu/tls.h>
+#elif defined(__X86_64__)
 #include <x86/tls.h>
 #elif defined(__ARM_64__)
 #include <arm/arm64/tls.h>
diff --git a/plat/linuxu/include/tls.h b/plat/linuxu/include/linuxu/tls.h
similarity index 100%
rename from plat/linuxu/include/tls.h
rename to plat/linuxu/include/linuxu/tls.h
-- 
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®.