what i have learned so far is
if it is off you have each 32 bit address refers to 1 byte
else it refers to 4 kib
but lets say it is on
and now lets say i have to reference a address that is 6kib from the start(so not exactly a multiple of 4)
then how do i do it??
because each address refers to a 4 kib block
also if you are gonna explain this please explain it from the point of view of paging.
also i was following bran kernel development
and can some explain me these lines
Code: Select all
outportb(0x21, 0x0);
outportb(0xA1, 0x0);
Code: Select all
void irq_remap(void)
{
outportb(0x20, 0x11);
outportb(0xA0, 0x11);
outportb(0x21, 0x20);
outportb(0xA1, 0x28);
outportb(0x21, 0x04);
outportb(0xA1, 0x02);
outportb(0x21, 0x01);
outportb(0xA1, 0x01);
outportb(0x21, 0x0);
outportb(0xA1, 0x0);
}