sp1/amd64: Add frame.h

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-04-17 19:26:45 -04:00
parent 36cf115d3e
commit cd7c110d2c
+49
View File
@@ -0,0 +1,49 @@
/*
* Copyright (c) 2026, Mirocom Laboratories
* All rights reserved.
*
* The following sources are CONFIDENTIAL and PROPRIETARY
* property of Mirocom Laboratories. Unauthorized copying,
* use, distribution or modification of this file, in whole
* and in part, is strictly prohibited without the prior written
* consent from Mirocom Laboratories.
*/
#ifndef _MACHINE_FRAME_H_
#define _MACHINE_FRAME_H_ 1
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* A trapframe holds the processor register state during
* an interrupt.
*/
struct __packed trapframe {
/* Pushed by us */
uint64_t vector;;
uint64_t rax;
uint64_t rbx;
uint64_t rcx;
uint64_t rdx;
uint64_t rsi;
uint64_t rdi;
uint64_t rbp;
uint64_t r8;
uint64_t r9;
uint64_t r10;
uint64_t r11;
uint64_t r12;
uint64_t r13;
uint64_t r14;
uint64_t r15;
/* Pushed by hardware */
uint64_t error_code;
uint64_t rip;
uint64_t cs;
uint64_t rflags;
uint64_t rsp;
uint64_t ss;
};
#endif /* !_MACHINE_FRAME_H_ */