32bit CPU architecture Flashcards
IA-32 Registers
General purpose registers segment registers EFLAGS/EIP FPU MMX registers XMM registers
EAX breakdown (in bits)
EAX = 32 AX = 16 AH = 8 high AL = 8 low
CPU modes
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
memory models
FLAT, LINEAR, SEGMENTED
what memory model does linux run
FLAT, IA-32 linux run in CPU protected mode, flat memory model
what does virtual memory model do? allow the application to think..
allows the process to think, that its the only thing running on the system.
Ways to view memory maps for an application in linux?
GDB = info proc mappings
cat /proc/{PID}/maps (most info)
pmap -d {PID}