1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13/* See trampoline.h for an explanation of this functionality. */
14
15    .global debug_trampoline
16    .text
17
18debug_trampoline:
19    /* Give ourselves a stack. */
20    leal debug_stack_top, %esp
21
22    /* Pass up to three arguments. */
23    pushl %edx
24    pushl %ecx
25    pushl %ebx
26
27    /* Woe betide the silly user if they try to return. */
28    jmp *%eax
29
30    .bss
31    .align 8
32    .space 4096
33debug_stack_top:
34