|
Last change
on this file since e49d0ac was cb7be8f, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 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 | #
|
|---|
| 19 | SYMBOL(__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.