2014-11-11 15:07:37 -07:00
|
|
|
package runtime
|
|
|
|
|
2014-11-21 11:39:01 -07:00
|
|
|
const _PAGESIZE = 0x1000
|
|
|
|
|
2014-11-11 15:07:37 -07:00
|
|
|
type ureg struct {
|
|
|
|
di uint32 /* general registers */
|
|
|
|
si uint32 /* ... */
|
|
|
|
bp uint32 /* ... */
|
|
|
|
nsp uint32
|
|
|
|
bx uint32 /* ... */
|
|
|
|
dx uint32 /* ... */
|
|
|
|
cx uint32 /* ... */
|
|
|
|
ax uint32 /* ... */
|
|
|
|
gs uint32 /* data segments */
|
|
|
|
fs uint32 /* ... */
|
|
|
|
es uint32 /* ... */
|
|
|
|
ds uint32 /* ... */
|
|
|
|
trap uint32 /* trap _type */
|
|
|
|
ecode uint32 /* error code (or zero) */
|
|
|
|
pc uint32 /* pc */
|
|
|
|
cs uint32 /* old context */
|
|
|
|
flags uint32 /* old flags */
|
|
|
|
sp uint32
|
|
|
|
ss uint32 /* old stack segment */
|
|
|
|
}
|