[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MiNT 1.11 BETA
In <199408090655.XAA20332@netcom6.netcom.com> you write:
>In the next 16 messages I'm sending along the source code for MiNT 1.11 BETA.
heyy very nice!
>MiNT 1.11 looks quite a lot like 1.10h9 with a few extra bug fixes and
>a few omissions. I'd appreciate it if you'd all bang on it and check
>for compatibility problems (particularly with the networking software)
>and bugs.
alright here are some diffs :) i hope its not too late...
###
ttys, round 3
add TIOCHPCL (hang up on close), TIOCCAR (require carrier, SIGHUP),
TIOCWONLINE, and some more to also do BRKINT, VMIN, VTIME...
simple RSVF cookie support, pass thru TIOC[IO]BAUD, FIONREAD (SCC) and
some others (but not the callback stuff, use select, TIOCCAR etc instead)
and add a few check_sigs after killgroup and some more fixes.
yes you can login over modem2 with 38400bps now and have it hang up
properly and SIGHUP your shell when disconnected, just don't forget
security on MiNT is still a joke... :) i think the only thing thats
still really missing now is a real cooked mode i.e. raise SIGQUIT
when ^\ received, don't wait until someone tries to read it.
(workaround: go thru a pty, script /dev/null, telnet 127.1...)
there is a #define MDM0_IOCTLS in tty.c, if you leave that in you can
use the stty that comes with mdm0 to change local mode and hupcl until
i have patches for mintlib etc.
(this one's a bit big so i !gzip |uuencode'd it, look for the next
ones with /^###)
table
!"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 diffs1.gz
M'XL( *SJ3"X !>P[:U?;2+*?Q:_HD)M$LF60_ ""0V: 0,(9 AD@,[LGD_%*z
MLF1KD"6O) />3/:W;SVZ]8HAF=T]>_?<<_E@Y%9U=U5UO;M\$H_]NUT1A)&_y
M,5W[_GO1Z6T/S"W1QG_V0'S__9IX//:#,/;%U<GYX>7QZ?[K2TW7GUT]>_%"x
M[!CB=]'M&76@\_=7/S9 ^@V0RZ.K=PV0@;'6KH*\>7=XV@#9:H <[E]H#9#Mw
M!L@9PM1!=AH@/Y^?G9Z<'36@GC>@F/*#.E3/:D"]OK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A&39D8Xk
MQSR'H/1)G\+LO<JGQDUL%O;)$T"00#CKF:5CW&Z4T:)Z. C6T?(32_IJD@>Cj
M6:G0V)KDUKJ)>3 !8)3Y3:M#CI;<E&4FPVXCEIFLN05J_:&GK_EQ#[O+.VRRi
M5*X9[:WF!N'CP6P>>RAAP6:$C)7=ACA&JQWVH>!3 *9)ZY8W_6+E8=%RCCE\h
M(CXB]\N3$W)\@!E!5,0),#)A >7I;J,RY\76%<%-IW.:,=97;@S_$^Q;AKA*g
#_@ f
e
end
###
pipe_read/write: save some context changes, don't wake(select) other
end when the buffer hasn't changed, otherwise they only wake up and
go to sleep again. (or am i confused? tty response looks a bit
faster now...)
and add VMIN, and fix some bugs (my own ones mostly :)
Index: pipefs.c
@@ -631,14 +633,13 @@
raise(SIGPIPE);
return EPIPE;
}
+#if 0
/* wake up any readers, and wait for them to gobble some data */
if (p->rsel) {
wakeselect(p->rsel);
-#if 0
- p->rsel = 0;
-#endif
}
wake(IO_Q, (long)p);
+#endif
sleep(IO_Q, (long)p);
goto check_atomicity;
}
@@ -666,6 +667,14 @@
buf += j;
}
p->len = plen;
+ if (!is_terminal(f) || !(f->flags & O_HEAD) ||
+ plen >= this->tty->vmin*4) {
+ /* is someone select()ing the other end of the pipe for reading? */
+ if (p->rsel) {
+ wakeselect(p->rsel);
+ }
+ wake(IO_Q, (long)p); /* readers may continue */
+ }
} else { /* pipe full */
if (p->readers == 0 || p->readers == VIRGIN_PIPE) {
/* maybe some other signal is waiting for us? */
@@ -677,23 +686,27 @@
if (f->flags & O_NDELAY) {
break;
}
+#if 0
/* is someone select()ing the other end of the pipe for reading? */
if (p->rsel) {
wakeselect(p->rsel);
}
wake(IO_Q, (long)p); /* readers may continue */
+#endif
DEBUG(("pipe_write: sleep on %lx", p));
sleep(IO_Q, (long)p);
}
}
this->time = timestamp;
this->date = datestamp;
+#if 0
if (bytes_written > 0) {
if (p->rsel) {
wakeselect(p->rsel);
}
wake(IO_Q, (long)p); /* maybe someone wants this data */
}
+#endif
return bytes_written;
}
@@ -741,6 +754,11 @@
p->len = plen;
if (plen == 0 || p->start == PIPESIZ)
p->start = 0;
+ /* is someone select()ing the other end of the pipe for writing? */
+ if (p->wsel) {
+ wakeselect(p->wsel);
+ }
+ wake(IO_Q, (long)p); /* writers may continue */
}
else if (p->writers <= 0 || p->writers == VIRGIN_PIPE) {
TRACE(("pipe_read: no more writers"));
@@ -752,20 +770,24 @@
break;
}
else {
+#if 0
/* is someone select()ing the other end of the pipe for writing? */
if (p->wsel) {
wakeselect(p->wsel);
}
wake(IO_Q, (long)p); /* writers may continue */
+#endif
sleep(IO_Q, (long)p);
}
}
+#if 0
if (bytes_read > 0) {
if (p->wsel) {
wakeselect(p->wsel);
}
wake(IO_Q, (long)p); /* wake writers */
}
+#endif
return bytes_read;
}
@@ -800,8 +822,12 @@
if (nbytes != 4)
ALERT("pty_read: master nbytes != 4");
bytes_read = pipe_read(f, buf+3, 1);
- if (bytes_read == 1)
+ if (bytes_read == 1) {
bytes_read = 4;
+ *buf++ = 0;
+ *buf++ = 0;
+ *buf++ = 0;
+ }
return bytes_read;
}
@@ -820,10 +846,30 @@
pty_readb(f, buf, nbytes)
FILEPTR *f; char *buf; long nbytes;
{
+ struct fifo *this = (struct fifo *)f->fc.index;
+
if (!nbytes)
return 0;
- if (!(f->flags & O_HEAD))
+ if (!(f->flags & O_HEAD)) {
+ struct tty *tty = this->tty;
+/*
+ * we don't do pty slave reads yet (they need long -> byte conversion for
+ * every char) but we still want to support VMIN > 1... so sleep first
+ * and then return EUNDEV, then VMIN chars (well longs :) are ready when
+ * tty_read starts reading them one at a time
+ */
+ while (tty->vmin > 1 && !tty->vtime &&
+ !(f->flags & O_NDELAY) &&
+ (tty->sg.sg_flags & (T_RAW|T_CBREAK)) &&
+ this->inp->len < tty->vmin*4 && this->inp->writers > 0)
+ sleep (IO_Q, (long)this->inp);
return EUNDEV;
+ }
+/*
+ * pty master reads are always RAW
+ */
+ if (nbytes > 1 && nbytes > this->outp->len)
+ nbytes = this->outp->len;
return pipe_read(f, buf, nbytes);
}
@@ -920,6 +966,25 @@
else
lck->l_type = F_UNLCK;
break;
+ case TIOCGVMIN:
+ case TIOCSVMIN:
+ {
+ unsigned short *v = buf;
+ struct tty *tty = this->tty;
+
+ if (!is_terminal(f) || !tty)
+ return EINVFN;
+ if (mode == TIOCGVMIN) {
+ v[0] = tty->vmin;
+ v[1] = tty->vtime;
+ } else {
+ if (v[0] > PIPESIZ/4)
+ v[0] = PIPESIZ/4;
+ tty->vmin = v[0];
+ tty->vtime = v[1];
+ }
+ return 0;
+ }
case TIOCSTART:
if (is_terminal(f) && !(f->flags & O_HEAD) &&
#if 0
@@ -946,7 +1011,12 @@
}
if ((flushtype & 2) && this->outp) {
this->outp->start = this->outp->len = 0;
- wake(IO_Q, (long)this->outp);
+ if (!is_terminal(f) || (f->flags & O_HEAD) ||
+ !(this->tty->state & TS_HOLD)) {
+ wake(IO_Q, (long)this->outp);
+ if (this->outp->wsel)
+ wakeselect (this->outp->wsel);
+ }
}
break;
}
@@ -1156,8 +1234,9 @@
/* NOTE: if p->writers <= 0 then reads won't block (they'll fail) */
if ((p->len > 0 &&
- (!is_terminal(f) || !(f->flags & O_HEAD) ||
- !(this->tty->state & TS_HOLD))) ||
+ (!is_terminal(f) || ((f->flags & O_HEAD) ?
+ (!(this->tty->state & TS_HOLD)) :
+ (p->len >= this->tty->vmin*4)))) ||
p->writers <= 0) {
return 1;
}
@@ -1205,14 +1284,20 @@
if (!p) {
return;
}
- if (p->rsel == proc)
+ if (p->rsel == proc) {
p->rsel = 0;
+ if (is_terminal(f) && !(f->flags & O_HEAD))
+ this->tty->rsel = 0;
+ }
} else if (mode == O_WRONLY) {
p = (f->flags & O_HEAD) ? this->inp : this->outp;
if (!p) {
return;
}
- if (p->wsel == proc)
+ if (p->wsel == proc) {
p->wsel = 0;
+ if (is_terminal(f) && !(f->flags & O_HEAD))
+ this->tty->wsel = 0;
+ }
}
}
###
SIGHUP pty slaves when master end closes... or would this break
multitos binaries too? :/
Index: pipefs.c
@@ -1090,7 +1160,15 @@
}
if (rwmode == O_WRONLY || rwmode == O_RDWR) {
p = (f->flags & O_HEAD) ? this->inp : this->outp;
- if (p) p->writers--;
+ if (p) {
+ p->writers--;
+#if 1
+/* if pty master exits tell the slaves */
+ if (!p->writers && is_terminal(f) &&
+ (f->flags & O_HEAD) && this->tty->pgrp)
+ killgroup(this->tty->pgrp, SIGHUP);
+#endif
+ }
}
/* correct for the "selfread" flag (see pipe_creat) */
###
fix another sleep deadlock, checkkeys/checkbttys can wake() the
condition curproc just wants to sleep for... and if there are other
processes ready only reset proc_clock when really going to sleep.
the reset_priorities() in fresh_slices is to prevent 2 processes
running at MAX_NICE+1, else it really only helps the first process
in a pipe for example...
Index: proc.c
@@ -9,7 +9,7 @@
#include "mint.h"
#include "xbra.h"
-static void do_wakeup_things P_((int));
+static void do_wakeup_things P_((short sr, int newslice));
extern short proc_clock;
@@ -332,9 +332,10 @@
fresh_slices(slices)
int slices;
{
+ reset_priorities();
curproc->slices = 0;
curproc->curpri = MAX_NICE+1;
- proc_clock = slices;
+ proc_clock = TIME_SLICE+slices;
}
/*
@@ -428,9 +429,10 @@
* curproc->wait_cond
*/
-static void
-do_wakeup_things(sr)
+INLINE static void
+do_wakeup_things(sr, newslice)
short sr;
+int newslice;
{
/*
* check for stack underflow, just in case
@@ -466,15 +468,19 @@
check_sigs(); /* check for signals */
}
- if (p->slices >= 0) {
- proc_clock = TIME_SLICE; /* get a fresh time slice */
- } else {
- proc_clock = -p->slices; /* slices set by run_next */
- p->curpri = p->pri;
+ if (newslice) {
+ if (p->slices >= 0) {
+ proc_clock = TIME_SLICE; /* get a fresh time slice */
+ } else {
+ proc_clock = TIME_SLICE-p->slices; /* slices set by run_next */
+ p->curpri = p->pri;
+ }
+ p->slices = SLICES(p->curpri);
}
- p->slices = SLICES(p->curpri);
}
+static long sleepcond;
+
/*
* sleep: returns 1 if no signals have happened since our last sleep, 0
* if some have
@@ -489,12 +495,19 @@
short sr, que = _que & 0xff;
ulong onsigs = curproc->nsigs;
extern short kintr; /* in bios.c */
+ int newslice = 1;
#ifndef MULTITOS
#ifdef FASTTEXT
extern int hardscroll; /* in fasttext.c */
#endif
#endif
+/* save condition, checkbttys may just wake() it right away...
+ * note this assumes the condition will never be waked from interrupts
+ * or other than thru wake() before we really went to sleep, otherwise
+ * use the 0x100 bit like select
+ */
+ sleepcond = cond;
/*
* if there have been keyboard interrupts since our last sleep, check for
* special keys like CTRL-ALT-Fx
@@ -517,16 +530,24 @@
* indicatation that the wakeup has already happend before we actually
* go to sleep and return immediatly.
*/
- if ((_que & 0x100 && curproc->wait_cond != cond) ||
- (que == READY_Q && !sys_q[READY_Q])) {
+ if ((que == READY_Q && !sys_q[READY_Q]) ||
+ ((sleepcond != cond ||
+ (_que & 0x100 && curproc->wait_cond != cond)) &&
+ (!sys_q[READY_Q] || (newslice = 0, proc_clock)))) {
/* we're just going to wake up again right away! */
spl(sr);
- do_wakeup_things(sr);
+ do_wakeup_things(sr, newslice);
return (onsigs != curproc->nsigs);
}
-
+/*
+ * unless our time slice has expired (proc_clock == 0) and other
+ * processes are ready...
+ */
+ if (!newslice)
+ que = READY_Q;
+ else
+ curproc->wait_cond = cond;
add_q(que, curproc);
- curproc->wait_cond = cond;
if (!sys_q[READY_Q]) {
/* hmm, no-one is ready to run. might be a deadlock, might not.
@@ -589,7 +610,7 @@
#endif
*((void **)0x44eL) = curproc->logbase;
#endif
- do_wakeup_things(sr);
+ do_wakeup_things(sr, 1);
return (onsigs != curproc->nsigs);
}
/*
@@ -635,6 +656,8 @@
ALERT("wake: why wake up ready processes??");
return;
}
+ if (sleepcond == cond)
+ sleepcond = 0;
top:
for(p = sys_q[que]; p; p = p->q_next) {
if (p->wait_cond == cond) {
@@ -789,6 +812,7 @@
{
unsigned long myuptick = uptimetick;
+ checkbttys_vbl();
if (myuptick > last_200ms)
calc_load_average();
###
another GEM crash workaround... :) (and give processes a bit more
time for shutdown) if you use execgem also add the F_ALLOCZERO bit to
its create-basepage Pexec, you can check a running process memflags
with Julians ps (ps -wvx).
Index: mem.h
@@ -85,6 +85,8 @@
#define F_MINALT 0xf0000000L /* used to decide which type of RAM to load in */
+#define F_ALLOCZERO 0x2000 /* zero mem, for bugged (GEM...) programs */
+
/* Bit in Mxalloc's arg for "don't auto-free this memory" */
#define F_KEEP 0x4000
Index: dosmem.c
@@ -94,6 +94,13 @@
if ((mode & F_KEEP)) { /* request for permanent memory */
m->mflags |= M_KEEP;
}
+#if 1
+ /* some programs crash when newly allocated memory isn't all zero,
+ * like TOS 1.(0)4 GEM when loading xcontrol.acc...
+ */
+ if ((curproc->memflags & F_ALLOCZERO) || (mode & F_ALLOCZERO))
+ zero((char *)m->loc, m->len);
+#endif
return (long)v;
}
Index: main.c
@@ -558,13 +566,19 @@
shut down
*/
- addtimeout(1000, shutmedown);
+ addtimeout(5000, shutmedown);
do {
sleep(WAIT_Q, (long)shutdown);
} while (curproc->wait_cond == (long)shutdown);
}
}
+#ifndef MULTITOS
+long GEM_memflags = F_FASTLOAD | F_ALTLOAD | F_ALTALLOC | F_PROT_S | F_ALLOCZERO;
+#else
+long GEM_memflags = F_FASTLOAD | F_ALTLOAD | F_ALTALLOC | F_PROT_S;
+#endif
+
#if defined(__GNUC__) || defined(__MINT__)
int
main(argc, argv, envp)
@@ -896,8 +917,7 @@
} else if (!gem_active) {
BASEPAGE *bp; int pid;
bp = (BASEPAGE *)p_exec(7,
- (char *)((long)F_FASTLOAD | F_ALTLOAD | F_ALTALLOC | F_PROT_S),
- (char *)"\0", init_env);
+ (char *)GEM_memflags, (char *)"\0", init_env);
bp->p_tbase = *((long *) EXEC_OS );
#ifndef MULTITOS
if (((long *) sysbase[5])[0] == 0x87654321)
###
and some lost patches i don't know whats wrong with :)
set up stack for signal handler at ipl7 so that not some interrupt that
comes along and pushes a few 100 bytes on the stack can overwrite it
before restore_context has set the new sp...
Index: signal.c
@@ -305,8 +305,8 @@
long oldstack, newstack;
long *stack;
CONTEXT *call, contexts[2];
-#define oldsysctxt (contexts[0])
-#define newcurrent (contexts[1])
+#define newcurrent (contexts[0])
+#define oldsysctxt (contexts[1])
extern void sig_return();
@@ -397,9 +397,9 @@
++curproc->nsigs;
call = &curproc->ctxt[SYSCALL];
/*
- * what we do is build two fake stack frames; the bottom one is
+ * what we do is build two fake stack frames; the top one is
* for a call to the user function, with (long)parameter being the
- * signal number; the top one is for sig_return.
+ * signal number; the bottom one is for sig_return.
* When the user function returns, it returns to sig_return, which
* calls into the kernel to restore the context in prev_ctxt
* (thus putting us back here). We can then continue on our way.
@@ -407,7 +407,7 @@
/* set a new system stack, with a bit of buffer space */
oldstack = curproc->sysstack;
- newstack = ((long) ( (&newcurrent) - 2 )) - 12;
+ newstack = ((long) &newcurrent) - 0x40 - 12;
if (newstack < (long)curproc->stack + ISTKSIZE + 256) {
ALERT("stack overflow");
@@ -417,11 +417,6 @@
FATAL("system stack not in proc structure");
}
-/* unwound_stack is set by p_sigreturn() */
- if (sig == 0 && unwound_stack)
- curproc->sysstack = unwound_stack;
- else
- curproc->sysstack = newstack;
oldsysctxt = *call;
stack = (long *)(call->sr & 0x2000 ? call->ssp :
call->usp);
@@ -450,10 +445,6 @@
call->pc = (long) curproc->sighandle[sig];
call->sfmt = call->fstate[0] = 0; /* don't restart FPU communication */
- ((long *)curproc->sysstack)[1] = FRAME_MAGIC;
- ((long *)curproc->sysstack)[2] = oldstack;
- ((long *)curproc->sysstack)[3] = sig;
-
if (curproc->sigflags[sig] & SA_RESET) {
curproc->sighandle[sig] = SIG_DFL;
curproc->sigflags[sig] &= ~SA_RESET;
@@ -469,6 +460,20 @@
newcurrent.regs[0] = CTXT_MAGIC;
/* set D0 so next return is different */
assert(curproc->magic == CTXT_MAGIC);
+
+/* unwound_stack is set by p_sigreturn() */
+ if (sig == 0 && unwound_stack)
+ stack = (long *) unwound_stack;
+ else
+/* newstack points just below our current sp, much less than ISTKSIZE away
+ * so better set it up with interrupts off... -nox */
+ stack = (long *) newstack;
+ spl7();
+ curproc->sysstack = (long) stack;
+ ++stack;
+ *stack++ = FRAME_MAGIC;
+ *stack++ = oldstack;
+ *stack = sig;
leave_kernel();
restore_context(call);
}
@@ -534,7 +539,7 @@
}
else {
valid_return = 0;
- oldctxt = ((CONTEXT *)(&frame[2])) + 2;
+ oldctxt = (CONTEXT *) (((long)&frame[2]) + 0x40);
if (oldctxt->regs[0] != CTXT_MAGIC) {
FATAL("p_sigreturn: corrupted context");
}
###
allow creat() on pipes when the other end is already open, to make e.g.
echo foo >pipe work. Fcreate still fails when its attr word is != 0
so things like toswin etc. still work...
Index: dosfile.c
@@ -37,7 +37,7 @@
unsigned perm;
int creating;
char temp1[PATH_MAX];
- extern FILESYS proc_filesys;
+ extern FILESYS proc_filesys, pipe_filesys;
/* for special BIOS "fake" devices */
extern DEVDRV fakedev;
@@ -62,9 +62,12 @@
/*
* file found: this is an error if (O_CREAT|O_EXCL) are set
+ * ...or if this is Fcreate with nonzero attr on the pipe filesystem
*/
- if ( (r == 0) && ( (rwmode & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) ) ) {
+ if ( (r == 0) && ( (rwmode & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) ||
+ (attr && fc.fs == &pipe_filesys &&
+ (rwmode & (O_CREAT|O_TRUNC)) == (O_CREAT|O_TRUNC)))) {
DEBUG(("do_open(%s): file already exists",name));
mint_errno = EACCDN;
release_cookie(&fc);
Index: pipefs.c
@@ -553,10 +553,12 @@
}
p->flags &= ~O_HEAD;
} else {
- if (f->flags & O_CREAT) {
+#if 0
+ if (f->flags & O_TRUNC) {
DEBUG(("pipe_open: fifo already exists"));
return EACCDN;
}
+#endif
}
/*
* check for file sharing compatibility. note that O_COMPAT gets mutated
###
maybe this bug is not in the 68000 itself but somewhere else in the
ST hardware, but i do believe there is something to it... (Daniel are
you still around? :)
Index: intr.spp
@@ -335,6 +335,10 @@
move.l _sig_routine,a1 ; get handler
jsr (a1) ; go do it
movem.l (sp)+,d0-d2/a0-a2
+; 68000 processor bug: rte right after movem can eat interrupts...
+%ifndef ONLY030
+ nop
+%endif
rte
;
###
is this intentional? ;)
Index: tosfs.c
@@ -179,7 +179,7 @@
/* jr: external table, set up by getbpb in bios.c */
extern unsigned short clsizb[];
-#define INODE_PER_CRC
+/*#define INODE_PER_CRC */
#ifdef INODE_PER_CRC
###
oh and i also liked the always-give-init-pid-1 one...
cheers,
Juergen