Blame


1 f305dffb 2003-10-13 devnull [Need to write better notes.]
2 f305dffb 2003-10-13 devnull
3 f305dffb 2003-10-13 devnull Look for files named *386* or *FreeBSD* and you'll see what
4 f305dffb 2003-10-13 devnull you need to implement for your architecture of choice.
5 f305dffb 2003-10-13 devnull
6 f305dffb 2003-10-13 devnull The hardest thing is probably the assembly routines:
7 f305dffb 2003-10-13 devnull src/lib9/tas-$SYSTYPE.s and src/libthread/asm-$SYSTYPE-$OBJTYPE.s.
8 f305dffb 2003-10-13 devnull The former is a test and set used to implement shared-memory
9 f305dffb 2003-10-13 devnull spin locks. The latter is a stripped down setjmp and longjmp
10 f305dffb 2003-10-13 devnull used to implement stack switching in the thread library.
11 f305dffb 2003-10-13 devnull Also, src/libthread/$OBJTYPE.c needs to know how to set up a stack
12 f305dffb 2003-10-13 devnull frame for the given object type.
13 f305dffb 2003-10-13 devnull
14 f305dffb 2003-10-13 devnull If you're only interested in mk and sam, you don't need to
15 c4991217 2004-03-02 devnull write any assembly to do a port. Acme and samterm require everything
16 f305dffb 2003-10-13 devnull though, since it uses libthread.
17 f305dffb 2003-10-13 devnull