|
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:
496 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2008 Jiri Svoboda
|
|---|
| 3 | *
|
|---|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #include <abi/asmtool.h>
|
|---|
| 8 |
|
|---|
| 9 | ## void entry_point_jmp(void *entry_point, void *pcb);
|
|---|
| 10 | #
|
|---|
| 11 | # %rdi contains entry_point
|
|---|
| 12 | # %rsi contains pcb
|
|---|
| 13 | #
|
|---|
| 14 | # Jump to program entry point
|
|---|
| 15 | SYMBOL(entry_point_jmp)
|
|---|
| 16 | # use standard amd32 prologue not to confuse anybody
|
|---|
| 17 | push %rbp
|
|---|
| 18 | movq %rsp, %rbp
|
|---|
| 19 |
|
|---|
| 20 | # pcb must be passed in %rdi, use %rdx as a scratch register
|
|---|
| 21 | mov %rdi, %rdx
|
|---|
| 22 | mov %rsi, %rdi
|
|---|
| 23 |
|
|---|
| 24 | # jump to entry point
|
|---|
| 25 | jmp *%rdx
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.