VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bootsector2-structures.mac@ 78210

Last change on this file since 78210 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1; $Id: bootsector2-structures.mac 76553 2019-01-01 01:45:53Z vboxsync $
2;; @file
3; Common structures.
4;
5
6;
7; Copyright (C) 2007-2019 Oracle Corporation
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.virtualbox.org. This file is free software;
11; you can redistribute it and/or modify it under the terms of the GNU
12; General Public License (GPL) as published by the Free Software
13; Foundation, in version 2 as it comes in the "COPYING" file of the
14; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16;
17; The contents of this file may alternatively be used under the terms
18; of the Common Development and Distribution License Version 1.0
19; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20; VirtualBox OSE distribution, in which case the provisions of the
21; CDDL are applicable instead of those of the GPL.
22;
23; You may elect to license modified versions of this file under the
24; terms and conditions of either the GPL or the CDDL or both.
25;
26
27%ifndef ___bootsector2_structures_mac___
28%define ___bootsector2_structures_mac___
29
30
31;;
32; Registers. Used by traps and such.
33;
34struc BS2REGS
35 .rax resq 1
36 .rbx resq 1
37 .rcx resq 1
38 .rdx resq 1
39 .rdi resq 1
40 .rsi resq 1
41 .rbp resq 1
42 .rsp resq 1
43 .rip resq 1
44 .r8 resq 1
45 .r9 resq 1
46 .r10 resq 1
47 .r11 resq 1
48 .r12 resq 1
49 .r13 resq 1
50 .r14 resq 1
51 .r15 resq 1
52 .rflags resq 1
53 .cs resw 1
54 .ds resw 1
55 .es resw 1
56 .fs resw 1
57 .gs resw 1
58 .ss resw 1
59 .cBits resb 1
60 .pad resb 3
61 .cr0 resq 1
62 .cr2 resq 1
63 .cr3 resq 1
64 .cr4 resq 1
65 .cr8 resq 1
66 ;; @todo Add floating point registers when they are active.
67endstruc
68
69
70
71;;
72; Trap record.
73;
74struc BS2TRAPREC
75 ;; The trap location relative to the base address given at
76 ; registration time.
77 .offWhere resd 1
78 ;; What to add to .offWhere to calculate the resume address.
79 .offResumeAddend resb 1
80 ;; The trap number.
81 .u8TrapNo resb 1
82 ;; The error code if the trap takes one.
83 .u16ErrCd resw 1
84endstruc
85
86;; The size shift.
87%define BS2TRAPREC_SIZE_SHIFT 3
88
89
90%endif
91
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette