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

[Minios-devel] [UNIKRAFT PATCH 08/17] plat/common: Add ukplat_lcpu_{enable, disable}_irq functions


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Tue, 27 Mar 2018 15:29:41 +0300
  • Cc: simon.kuenzer@xxxxxxxxx
  • Delivery-date: Tue, 27 Mar 2018 12:30:13 +0000
  • Ironport-phdr: 9a23:0XCEHhVntbt8S/XT6Z+EcHCvHVjV8LGtZVwlr6E/grcLSJyIuqrYbBSBt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/XlMJ+kaxVrhGmqRN9zY7Ze52ZOOZkc6/BZ94WWXZNU8BMXCJBGIO8aI4PAvIfMOZftIn9u1oOrR2jDgeqGePv0iJIjWLx0KIm1OQhCh3G3A0mH94UtHTUsc31NLoJXO+p16nE1y3Db+5N1jvn8ojIdQksrPeRVrxzacrc0VQjGgzYglmKqoHoPymZ2voTv2WZ9eZtW/qjh3Mopg1suDSixcchhpPXio8bxF3I7zh1zYkrKdC+VUV1e8SrEIFKuCGfL4Z2R8QiTHx2tysi0b0GvIK7fDANyJQ62x7Tc/yHfJaM4hLkTOuRPzJ4i2hkeLK7nRq97VOgxvfkVsmpy1lGtDBFkt7UunAM0Rzc9NSHR+Ng8kquxDqDzQPe5+FeLUwqi6bWKYQtz7AompoWq0vDHyv2mEvsjK+Rc0Up4vSn6+P8YrX6p5+cMZV4igXjMqQ2h8yyGvg3MhMUU2iD5OSzz6fv/Vf+QLlSlP05jrHZsIzGJcQcvqO5Bg5V0oAi6xa4FDeqyckXkmcZLF1bfBKKlIzpO1DVIPDkFvezmVutnyltx/zcOb3hGJrNJGDZkLj9ZbZ991JcyA0rwNBE5pJUD7YBIPTpVk/yqdzXEBk5Mg2qzOb9E9h90J0RVn6LAqCDK6zeq0GH5v98a9WLMYoUvjf6ML0p6uDjiVc9mEQBZu+50J1Rb2q3Tdp8JEDMSn33ntYHWUMXphd2GOftk0GDV3hXem6vd6knoCkmAsS8CtGQFciWnLWd0XLjTdVtbWdcBwXUHA==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 include/uk/plat/lcpu.h | 10 ++++++++++
 plat/xen/lcpu.c        | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/include/uk/plat/lcpu.h b/include/uk/plat/lcpu.h
index 5f5939d..de37e8b 100644
--- a/include/uk/plat/lcpu.h
+++ b/include/uk/plat/lcpu.h
@@ -49,6 +49,16 @@ __u8 ukplat_lcpu_count(void);
 #endif
 
 /**
+ * Enables interrupts
+ */
+void ukplat_lcpu_enable_irq(void);
+
+/**
+ * Disables interrupts
+ */
+void ukplat_lcpu_disable_irq(void);
+
+/**
  * Returns current interrupt flags and disables them
  * @return interrupt flags (Note that the format is unspecified)
  */
diff --git a/plat/xen/lcpu.c b/plat/xen/lcpu.c
index 476345b..eed89fb 100644
--- a/plat/xen/lcpu.c
+++ b/plat/xen/lcpu.c
@@ -44,6 +44,16 @@
 #include <uk/plat/lcpu.h>
 #include <uk/plat/time.h>
 
+void ukplat_lcpu_enable_irq(void)
+{
+       local_irq_enable();
+}
+
+void ukplat_lcpu_disable_irq(void)
+{
+       local_irq_disable();
+}
+
 unsigned long ukplat_lcpu_save_irqf(void)
 {
        unsigned long flags;
-- 
2.1.4


_______________________________________________
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®.