On 14:20 Mon 22 Mar, Alicornio wrote:
> Hi
> 
> I'm reading the Design and Implementation of 4.4BSD and I have some
> questions about the theory in this book and the OpenBSD, can I have a
> little help me?
> 
> 0- /src/sys/arch/amd64/stand/biosboot/biosboot.S is the frist code that will 
> be
> executed after the BIOS, right?

Actually it's /sys/arch/amd64/mbr/mbr.S, biosboot goes right after it.
 
> 1- I have the Intel's books and in the volume 3 (System Programming Guide),
> chapter 9 they talk about the processor initiazation. There is a exemple about
> how to do the boot and construct the tables. All these things are done by the
> BIOS, that's why I can call a 'int' instruction in the
> /src/sys/arch/amd64/stand/biosboot/biosboot.S, I'm right?

BIOS sets the default environment (including IDT) and provides an 'API'
via interrupts.
 
> 2- After biosboot.S to where should I go,
> /src/sys/arch/amd64/stand/boot/srt0.S ?

check the objdump -S /boot :)
 
> 3- In the 4.4 book the kenel is said to have 2 parts, top half
> and botton half, and queues between then. "Where are" these
> things (hardclock(), softclock(), hardware ints handlers, hardware
> traps handlers, queues, etc) in the souce tree? How theses things are
> structured in the source tree?
 
First, do make tags in /sys/arch/amd64.
Next, check /sys/arch/amd64/amd64/ 

> I'm trying to study the 4.4 book and go along with the source code but
> it's very, very hard. :-(
> 
> 
> Thank You very much

Finally,
my slides from OpenKyiv talk on OpenBSD Kernel Internals
(http://atmnis.com/~proger/openkyiv/openkyiv2009_proger_sys.pdf) may help.

Reply via email to