diff --git a/dist/buildmk b/dist/buildmk index 379e9dc1..07b223ac 100755 --- a/dist/buildmk +++ b/dist/buildmk @@ -12,6 +12,7 @@ OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed ' s;.*PowerMacintosh.*;power;g; s;.*Power.Macintosh.*;power;g; s;.*macppc.*;power;g; + s;.*mips.*;mips;g; s;.*ppc64.*;power;g; s;.*ppc.*;power;g; s;.*alpha.*;alpha;g; diff --git a/src/lib9/getcallerpc-mips.c b/src/lib9/getcallerpc-mips.c new file mode 100644 index 00000000..9bb4a955 --- /dev/null +++ b/src/lib9/getcallerpc-mips.c @@ -0,0 +1,8 @@ +#include + +ulong +getcallerpc(void *x) +{ + return ((ulong*)x)[-2]; +} + diff --git a/src/libmp/mips/mkfile b/src/libmp/mips/mkfile new file mode 100644 index 00000000..43a4662b --- /dev/null +++ b/src/libmp/mips/mkfile @@ -0,0 +1,4 @@ +all: + +%:V: + # nothing to see here diff --git a/src/libsec/mips/mkfile b/src/libsec/mips/mkfile new file mode 100644 index 00000000..43a4662b --- /dev/null +++ b/src/libsec/mips/mkfile @@ -0,0 +1,4 @@ +all: + +%:V: + # nothing to see here diff --git a/src/mkhdr b/src/mkhdr index c03ec52f..8d062ec0 100644 --- a/src/mkhdr +++ b/src/mkhdr @@ -10,6 +10,7 @@ OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed ' s;.*PowerMacintosh.*;power;g; s;.*Power.Macintosh.*;power;g; s;.*macppc.*;power;g; + s;.*mips.*;mips;g; s;.*ppc64.*;power;g; s;.*ppc.*;power;g; s;.*alpha.*;alpha;g;