Bugs (and some fixes)
Quoted 41 lines · --- Tommy McCabe
Quoted 8 lines · --- Alan Cox
Quoted 1 line · Tommy McCabe
The linker won't link any code segments larger
than
Quoted 1 line
64KB. (Fix: Use a different compiler, maybe the
one
Quoted 1 line
from FreeDOS or Minix)
Processor limit.
Compiler/memory model limit.
If code is... and data is... Use this model... under 64KB under 64KB Small (-ms) or Tiny (-mt) over 64KB under 64KB Medium (-mm) under 64KB over 64KB Compact (-mc) over 64KB over 64KB Large (-ml)Reference:
http://www.digitalmars.com/ctg/ctgMemoryModel.htmlQuoted 11 lines
Quoted 3 lines
The kernel prints out lots of 0's mixed in with
the
Quoted 3 lines
boot messages on bootup. (Fix: Remove the single
quotes around the 0 in line 139 ofelks/kernel/printk.c)You should probably check any fixes you make into
the tree
btw as I think its otherwise dead.Huh? I don't have developer access.
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected] More majordomo info at
Quoted 8 lines
http://vger.kernel.org/majordomo-info.html
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
Quoted 1 line · Tommy McCabe
--- Tommy McCabe <[email protected]> wrote:
[...]
Quoted 7 lines
Quoted 7 lines
Compiler/memory model limit.
If code is... and data is... Use this model... under 64KB under 64KB Small (-ms) or Tiny (-mt) over 64KB under 64KB Medium (-mm) under 64KB over 64KB Compact (-mc) over 64KB over 64KB Large (-ml)
The way medium and large models manage to get more than 64kB of code is by using multiple code segments. Unfortunately, since you can only address 64kB with a 16-bit pointer, this means that you have to use wider pointers if you want more than 64kB of code. Most compilers use a 32 bit pointer for this; 16 bits for the segment, 16 bits for the offset. And just to make matters worse, medium mode uses *different* sized pointers for code and data!
Probably an easier solution would be to move some kernel subsystems into user space. Sockets would be a classic example, since the code's pretty large. You'd have to implement a user-mode interface of some description but I doubt that would be particularly hard. We'd lose some performance, but seeing as we're planning on running this on an 8088, I don't think performance is a major design requirement...
Signature · 4 lines
+- David Given --McQ-+ "I smell a rat; I see him forming in the air & | [email protected] | darkening the sky; but I'll nip him in the bud." | ([email protected]) | --- Sir Boyle Roche +- www.cowlark.com --+