Kernel

 ◊  Kernel 2.4 Memory Addressing

by danang.wijanarko@gmail.com

 

Logical Address

The logical address is address that programmers commonly understand. It is composed by segment and offset.

Linear Address

This is address that logically can be addressed by a single 32-bit unsigned integer. Commonly known as virtual address. It strech until 4 GB (0x00000000 - 0xffffffff).

Physical Address

Is used to address the real memory chips. Represented by 32-bit unsigned integer too. This is how the address translation works.

 ◊  Kernel 2.4 Preliminary

by danang.wijanarko@gmail.com

 

System Startup

BIOS

Often called as bootstrap. Power on then RESET pin of CPU raised. After RESET asserted some register of processor (specially cs and ip) are set to fixed values, and code at 0xfffffff0 is executed (located @ ROM BIOS). Then BIOS program do some basic scanning to the local hardware attached in computer.

 ◊  Making a Bochs disk image

by danang.wijanarko@gmail.com

 

First, use a real machine to setup a partition to your liking. If you need to tar up the disk, use something like.

tar czlp --same-owner -f c.img.tgz --exclude /tmp /

I exclude certain directories to save space

Then create image disk using bximage.

 ◊  Simple Use GCC with inline asm

by danang.wijanarko@gmail.com

 

Preliminare

AT&T vs Intel sytax

  AT&T Intel
Register naming %eax eax
Src/dst order movl %eax, %ebx mov ebx, eax
Constant/immediate value movl $1, %eax mov eax, 1
Operator size spec. movw %ax, %bx mov bx, ax

And again about memory reference

"Bekatul Port" Personal Enterprise Number (PEN) registered @ IANA OID

ASN.1 Notation: {iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) 30347}

Dot Notation: 1.3.6.1.4.1.1.30347

IRI Notation: oid:/ISO/Identified-Organization/6/1/4/1/30347

Syndicate content