diff options
Diffstat (limited to 'coroutine/amd64')
-rw-r--r-- | coroutine/amd64/Context.h | 15 | ||||
-rw-r--r-- | coroutine/amd64/Context.s | 3 |
2 files changed, 7 insertions, 11 deletions
diff --git a/coroutine/amd64/Context.h b/coroutine/amd64/Context.h index fa5819e115..2e7b05ba31 100644 --- a/coroutine/amd64/Context.h +++ b/coroutine/amd64/Context.h @@ -1,10 +1,9 @@ -// -// amd64.h -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 10/5/2018. -// Copyright, 2018, by Samuel Williams. All rights reserved. -// +/* + * This file is part of the "Coroutine" project and released under the MIT License. + * + * Created by Samuel Williams on 10/5/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -19,13 +18,11 @@ extern "C" { const size_t COROUTINE_REGISTERS = 6; -// The fiber context (stack pointer). typedef struct { void **stack_pointer; } coroutine_context; -// The initialization function. typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self); inline void coroutine_initialize( diff --git a/coroutine/amd64/Context.s b/coroutine/amd64/Context.s index 772de3353c..e23f87de85 100644 --- a/coroutine/amd64/Context.s +++ b/coroutine/amd64/Context.s @@ -1,6 +1,5 @@ ## -## amd64.c -## File file is part of the "Coroutine" project and released under the MIT License. +## This file is part of the "Coroutine" project and released under the MIT License. ## ## Created by Samuel Williams on 10/5/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. |