Intel 386 User Manual

Page 172

Advertising
background image

7-13

SYSTEM MANAGEMENT MODE

exactly as if they represented another address line. The following options are supported by the
chip select unit:

To see how this extension of the CSU supports the SMRAM requirements, consider an embedded
system which has 1 Mbyte of 16-bit wide EPROM in the region 03F00000H to 03FFFFFFH and
1 Mbyte of 16-bit wide RAM in the region 00000000H to 000FFFFFH. A single 32 Kbyte RAM
in the region 00038000H to 0003FFFFH is added to support SMM. The chip selects for this sys-
tem during normal operation would be programmed as follows:

Each row in the above table represents a region of memory and its associated chip select logic.
During initialization, these same chip selects could be programmed as follows:

Only the SMRAM row has been changed; the SMRAM chip select has been redirected to the re-
gion 013F800H to 013FFFFH and the CASMM bit has been cleared. This allows the initialization
software to set up the SMRAM without entering the SMM. Note that the external design of the
system must guarantee that an SMI# cannot occur while the SMRAM is being initialized.

If the SMM driver needs to access the memory shadowed under the SMRAM, the chip selects
can be reconfigured as follows:

This leaves the SMRAM in place but moves the normal RAM into the partition 0100000H to
01FFFFFH. The CASMM bit is masked so that the RAM is selected independent of SMM.

CASMM

CMSMM

Chip select active:

0

0

During normal mode only

1

0

During SMM only

X

1

During normal mode or SMM

REGION

CA25:11

CM25:11

CASMM

CMSMM

BS16

EPROM

11 1111 0000 0000 0

00 0000 1111 1111 1

0

0

1

RAM

00 0000 0000 0000 0

00 0000 1111 1111 1

0

0

1

SMRAM

00 0000 0011 1000 0

00 0000 0000 0111 1

1

0

0

REGION

CA25:11

CM25:11

CASMM

CMSMM

BS16

EPROM

11 1111 0000 0000 0

00 0000 1111 1111 1

0

0

1

RAM

00 0000 0000 0000 0

00 0000 1111 1111 1

0

0

1

SMRAM

00 0001 0011 1000 0

00 0000 0000 0111 1

0

0

0

REGION

CA25:11

CM25:11

CASMM

CMSMM

BS16

EPROM

11 1111 0000 0000 0

00 0000 1111 1111 1

0

0

1

RAM

00 0001 0000 0000 0

00 0000 1111 1111 1

0

1

1

SMRAM

00 0000 0011 1000 0

00 0000 0000 0111 1

1

0

0

Advertising