32bit CPU architecture Flashcards

1
Q

IA-32 Registers

A
General purpose registers
segment registers
EFLAGS/EIP
FPU
MMX registers
XMM registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

EAX breakdown (in bits)

A
EAX = 32
AX = 16
AH = 8 high
AL = 8 low
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CPU modes

A

Real mode - 1MB max memory, no kernel and user space is possible, no memory protection

protected mode - up to 4GB of memory used, memory protection, privileges, multitasking

supports virtual-8086 mode

system management mode
- used for power management tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

memory models

A

FLAT, LINEAR, SEGMENTED

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what memory model does linux run

A

FLAT, IA-32 linux run in CPU protected mode, flat memory model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does virtual memory model do? allow the application to think..

A

allows the process to think, that its the only thing running on the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ways to view memory maps for an application in linux?

A

GDB = info proc mappings

cat /proc/{PID}/maps (most info)

pmap -d {PID}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly