|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v2 2/5] plat/*: Set current thread on IRQ stack
Hi Costin,I was personally wondering whether this might be easier done by simply having a global variable "current_thread" or something like that (and then, eventually, with SMP, a per-cpu variable), because it means you don't have to implement platform-specific handlers for this. But on the other side, this is how the current setup works for normal threads, so I think this is fine. It can always be reconsidered at a later point. Reviewed-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> On 5/29/19 6:56 AM, Costin Lupu wrote: Current thread address is saved on the top of the current thread stack. This patch extends this behavior for the interrupt stack in order to access the current thread address from interrupt context as well. Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> --- include/uk/plat/memory.h | 6 ++++++ plat/kvm/memory.c | 6 ++++++ plat/linuxu/memory.c | 5 +++++ plat/xen/memory.c | 7 +++++++ 4 files changed, 24 insertions(+) diff --git a/include/uk/plat/memory.h b/include/uk/plat/memory.h index 1bb15685..4c4e4dc4 100644 --- a/include/uk/plat/memory.h +++ b/include/uk/plat/memory.h @@ -158,6 +158,12 @@ int ukplat_memallocator_set(struct uk_alloc *a); */ struct uk_alloc *ukplat_memallocator_get(void);+/** -- Dr. Florian Schmidt フローリアン・シュミット Research Scientist, Systems and Machine Learning Group NEC Laboratories Europe Kurfürsten-Anlage 36, D-69115 Heidelberg Tel. +49 (0)6221 4342-265 Fax: +49 (0)6221 4342-155 e-mail: florian.schmidt@xxxxxxxxx ============================================================ Registered at Amtsgericht Mannheim, Germany, HRB728558 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |