mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 23:12:24 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
diff --git a/arch/ia32/pistachio/src/trap.spp b/arch/ia32/pistachio/src/trap.spp
|
|
--- a/arch/ia32/pistachio/src/trap.spp
|
|
+++ b/arch/ia32/pistachio/src/trap.spp
|
|
@@ -142,6 +142,24 @@
|
|
PROFILE_KERNEL_TIME_STOP
|
|
|
|
orl $STACK_TOP, %esp
|
|
+
|
|
+ /* Determine if there is any work required before returning
|
|
+ * back to userspace. */
|
|
+
|
|
+ /* Get address of current TCB */
|
|
+ IA32_GET_CURRENT_TCB %edx
|
|
+ /* Add offset of the callback function pointer */
|
|
+ addl $(OFS_TCB_POST_SYSCALL_CALLBACK), %edx
|
|
+ /* If the callback function pointer is set... */
|
|
+ cmpl $0, (%edx)
|
|
+ je 1f
|
|
+ /* ...call start_post_syscall_callback() */
|
|
+ pusha /* %esp = stack_top - 32 */
|
|
+ call start_post_syscall_callback /* %esp = stack top */
|
|
+ sub $32, %esp /* %esp = stack top - 32 */
|
|
+ popa
|
|
+ 1:
|
|
+
|
|
movl (%esp), %edx
|
|
addl $(OFS_TCB_ARCH), %edx
|
|
|