github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/include/ureg_x86.h (about) 1 // Inferno utils/libmach/ureg8.h 2 // http://code.google.com/p/inferno-os/source/browse/utils/libmach/ureg8.h 3 // 4 // Copyright © 1994-1999 Lucent Technologies Inc. 5 // Power PC support Copyright © 1995-2004 C H Forsyth (forsyth@terzarima.net). 6 // Portions Copyright © 1997-1999 Vita Nuova Limited. 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com). 8 // Revisions Copyright © 2000-2004 Lucent Technologies Inc. and others. 9 // Portions Copyright © 2009 The Go Authors. All rights reserved. 10 // 11 // Permission is hereby granted, free of charge, to any person obtaining a copy 12 // of this software and associated documentation files (the "Software"), to deal 13 // in the Software without restriction, including without limitation the rights 14 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 // copies of the Software, and to permit persons to whom the Software is 16 // furnished to do so, subject to the following conditions: 17 // 18 // The above copyright notice and this permission notice shall be included in 19 // all copies or substantial portions of the Software. 20 // 21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 // THE SOFTWARE. 28 29 struct Ureg 30 { 31 uint32 di; /* general registers */ 32 uint32 si; /* ... */ 33 uint32 bp; /* ... */ 34 uint32 nsp; 35 uint32 bx; /* ... */ 36 uint32 dx; /* ... */ 37 uint32 cx; /* ... */ 38 uint32 ax; /* ... */ 39 uint32 gs; /* data segments */ 40 uint32 fs; /* ... */ 41 uint32 es; /* ... */ 42 uint32 ds; /* ... */ 43 uint32 trap; /* trap type */ 44 uint32 ecode; /* error code (or zero) */ 45 uint32 pc; /* pc */ 46 uint32 cs; /* old context */ 47 uint32 flags; /* old flags */ 48 union { 49 uint32 usp; 50 uint32 sp; 51 }; 52 uint32 ss; /* old stack segment */ 53 };