diff options
author | aiju <devnull@localhost> | 2017-06-20 15:10:08 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-06-20 15:10:08 +0000 |
commit | becb89bae53e01785bfd843478737eeb77a9419f (patch) | |
tree | 11450e95827d5356c4e8c845124cca0d80ca326c /sys/src/9/pc/dat.h | |
parent | 9fb2001658fb59fa0c7437f856491ef5f4214ebe (diff) |
pc, pc64: adapt devvmx to work on pc64
Diffstat (limited to 'sys/src/9/pc/dat.h')
-rw-r--r-- | sys/src/9/pc/dat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/src/9/pc/dat.h b/sys/src/9/pc/dat.h index 452b613da..07f45bf5f 100644 --- a/sys/src/9/pc/dat.h +++ b/sys/src/9/pc/dat.h @@ -332,6 +332,18 @@ enum { Rdrnd = 1<<30, /* RDRAND support bit */ }; +/* model-specific registers, for compatibility with pc64 code */ +enum { + Efer = 0xc0000080, /* Extended Feature Enable */ + Star = 0xc0000081, /* Legacy Target IP and [CS]S */ + Lstar = 0xc0000082, /* Long Mode Target IP */ + Cstar = 0xc0000083, /* Compatibility Target IP */ + Sfmask = 0xc0000084, /* SYSCALL Flags Mask */ + FSbase = 0xc0000100, /* 64-bit FS Base Address */ + GSbase = 0xc0000101, /* 64-bit GS Base Address */ + KernelGSbase = 0xc0000102, /* SWAPGS instruction */ +}; + /* * a parsed plan9.ini line */ |