source: mainline/uspace/lib/c/arch/mips32/src/thread_entry.S@ cb7be8f

Last change on this file since cb7be8f was cb7be8f, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Update headers in .S files that incorrectly use #-style comments

  • Property mode set to 100644
File size: 601 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2006 Jakub Jermar
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <abi/asmtool.h>
8#include <libarch/stack.h>
9
10.text
11
12.set noat
13.set noreorder
14.option pic2
15
16## User-space thread entry point for all but the first threads.
17#
18#
19SYMBOL(__thread_entry)
20 .ent __thread_entry
21 .frame $sp, ABI_STACK_FRAME, $ra
22 .cpload $t9
23
24 #
25 # v0 contains address of uarg.
26 #
27 add $a0, $v0, 0
28
29 # Allocate the stack frame.
30 addiu $sp, -ABI_STACK_FRAME
31
32 # Allow PIC code
33 .cprestore 16
34
35 jal __thread_main
36 nop
37
38 #
39 # Not reached.
40 #
41 addiu $sp, ABI_STACK_FRAME
42 .end __thread_entry
Note: See TracBrowser for help on using the repository browser.