AMD AMD-K6-2/450 Design Guide - Page 34

SYSCALL/SYSRET Target Address Register (STAR),

Page 34 highlights

Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide 23913A/0-November 2000 SYSCALL/SYSRET Target Address Register (STAR) Models 8, 9, and D implement the STAR register. This register contains the target EIP address used by the SYSCALL instruction and the 16-bit code and stack segment selector bases used by the SYSCALL and SYSRET instructions. Figure 4 shows the format of the STAR register, and Table 11 defines the function of each field of the STAR register. The STAR register is MSR C000_0081h. For more information about SYSCALL/SYSRET, see the SYSCALL and SYSRET Instruction Specification Application Note, order# 21086. 63 48 47 32 31 SYSRET CS Selector and SS Selector Base SYSCALL CS Selector and SS Selector Base 0 Target EIP Address Figure 4. SYSCALL/SYSRET Target Address Register (STAR) (Models 8, 9, and D) Table 11. SYSCALL/SYSRET Target Address Register (STAR) Definition (Models 8, 9, and D) Bit Description 63-48 SYSRET CS and SS Selector Base 47-32 SYSCALL CS and SS Selector Base 31-0 Target EIP Address R/W Function During the SYSRET instruction, this field is copied into the CS R/W register and the contents of this field, plus 1000b, are copied into the SS register. During the SYSCALL instruction, this field is copied into the R/W CS register and the contents of this field, plus 1000b, are copied into the SS register. R/W During the SYSCALL instruction, this address is copied into the EIP and points to the new starting address. 22 Model 7 and Model 8/[7:0] Registers

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98

22
Model 7 and Model 8/[7:0] Registers
Embedded AMD-K6™ Processors BIOS Design Guide
23913A/0—November 2000
Preliminary Information
SYSCALL/SYSRET Target Address Register (STAR)
Models 8, 9, and D implement the STAR register. This register
contains the target EIP address used by the SYSCALL
instruction and the 16-bit code and stack segment selector
bases used by the SYSCALL and SYSRET instructions.
Figure 4 shows the format of the STAR register, and Table 11
defines the function of each field of the STAR register. The
STAR register is MSR C000_0081h.
For more information about SYSCALL/SYSRET, see the
SYSCALL and SYSRET Instruction Specification Application Note
,
order# 21086.
Figure 4.
SYSCALL/SYSRET Target Address Register (STAR) (Models 8, 9, and D)
Table 11.
SYSCALL/SYSRET Target Address Register (STAR) Definition (Models 8, 9, and D)
Bit
Description
R/W
Function
63–48
SYSRET CS and SS Selector Base
R/W
During the SYSRET instruction, this field is copied into the CS
register and the contents of this field, plus 1000b, are copied
into the SS register.
47–32
SYSCALL CS and SS Selector Base
R/W
During the SYSCALL instruction, this field is copied into the
CS register and the contents of this field, plus 1000b, are
copied into the SS register.
31–0
Target EIP Address
R/W
During the SYSCALL instruction, this address is copied into
the EIP and points to the new starting address.
31
0
63
Target EIP Address
32
47
48
SYSCALL CS Selector and SS
Selector Base
SYSRET CS Selector and SS
Selector Base