|
Last change
on this file since 8624d1f 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:
449 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2006 Ondrej Palkovsky
|
|---|
| 3 | *
|
|---|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #include <abi/asmtool.h>
|
|---|
| 8 |
|
|---|
| 9 | .text
|
|---|
| 10 |
|
|---|
| 11 | .org 0
|
|---|
| 12 |
|
|---|
| 13 | ## User-space task entry point
|
|---|
| 14 | #
|
|---|
| 15 | # %rdi contains the PCB pointer
|
|---|
| 16 | #
|
|---|
| 17 | SYMBOL(_start)
|
|---|
| 18 | #
|
|---|
| 19 | # Create the first stack frame.
|
|---|
| 20 | #
|
|---|
| 21 | pushq $0
|
|---|
| 22 | pushq $0
|
|---|
| 23 | movq %rsp, %rbp
|
|---|
| 24 |
|
|---|
| 25 | # %rdi was deliberately chosen as the first argument is also in %rdi
|
|---|
| 26 | # Pass PCB pointer to __c_start (no operation)
|
|---|
| 27 | call FUNCTION_REF(__c_start)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.