diff options
Diffstat (limited to 'coroutine/x86')
-rw-r--r-- | coroutine/x86/Context.h | 14 | ||||
-rw-r--r-- | coroutine/x86/Context.s | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h index c7e61c7a67..82fd1b75ff 100644 --- a/coroutine/x86/Context.h +++ b/coroutine/x86/Context.h @@ -1,9 +1,9 @@ -// -// File file is part of the "Coroutine" project and released under the MIT License. -// -// Created by Samuel Williams on 3/11/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 3/11/2018. + * Copyright, 2018, by Samuel Williams. All rights reserved. +*/ #pragma once @@ -18,13 +18,11 @@ extern "C" { const size_t COROUTINE_REGISTERS = 4; -// 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) __attribute__((fastcall)); void coroutine_initialize( diff --git a/coroutine/x86/Context.s b/coroutine/x86/Context.s index 9b319cd8df..5fc0cccc24 100644 --- a/coroutine/x86/Context.s +++ b/coroutine/x86/Context.s @@ -1,5 +1,5 @@ ## -## 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 3/11/2018. ## Copyright, 2018, by Samuel Williams. All rights reserved. |