Changed Makefiles: drivers are now installed in /usr/sbin.
TTY now gets SYS_EVENT message with sigset (e.g., SIGKMESS, SIGKSTOP).
This commit is contained in:
parent
f2e16763e7
commit
8c024e28a1
11 changed files with 34 additions and 21 deletions
|
@ -30,8 +30,8 @@ $(LIBDRIVER):
|
||||||
cd $d/libdriver && $(MAKE)
|
cd $d/libdriver && $(MAKE)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
## Makefile for ISA ethernet drivers May 02, 2000
|
## Makefile for ISA ethernet drivers May 02, 2000
|
||||||
##
|
##
|
||||||
## $Log$
|
## $Log$
|
||||||
|
## Revision 1.2 2005/07/19 12:12:47 jnherder
|
||||||
|
## Changed Makefiles: drivers are now installed in /usr/sbin.
|
||||||
|
## TTY now gets SYS_EVENT message with sigset (e.g., SIGKMESS, SIGKSTOP).
|
||||||
|
##
|
||||||
## Revision 1.1 2005/06/29 10:16:46 beng
|
## Revision 1.1 2005/06/29 10:16:46 beng
|
||||||
## Import of dpeth 3c501/3c509b/.. ethernet driver by
|
## Import of dpeth 3c501/3c509b/.. ethernet driver by
|
||||||
## Giovanni Falzoni <fgalzoni@inwind.it>.
|
## Giovanni Falzoni <fgalzoni@inwind.it>.
|
||||||
|
@ -34,8 +38,8 @@ $(DRIVER): $(OBJS)
|
||||||
install -S 4kw $(DRIVER)
|
install -S 4kw $(DRIVER)
|
||||||
|
|
||||||
## Install with other drivers
|
## Install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
## Generate dependencies
|
## Generate dependencies
|
||||||
|
|
|
@ -29,8 +29,8 @@ $(LIBDRIVER):
|
||||||
cd $d/libdriver && $(MAKE)
|
cd $d/libdriver && $(MAKE)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -28,8 +28,8 @@ $(LIBPCI):
|
||||||
cd $d/libpci && $(MAKE)
|
cd $d/libpci && $(MAKE)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -29,8 +29,8 @@ $(LIBDRIVER):
|
||||||
cd $d/libdriver && $(MAKE)
|
cd $d/libdriver && $(MAKE)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -36,8 +36,8 @@ aes/rijndael_alg.o:
|
||||||
$(CC) -c -o $@ aes/rijndael_alg.c
|
$(CC) -c -o $@ aes/rijndael_alg.c
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -24,8 +24,8 @@ $(DRIVER): $(OBJ)
|
||||||
# install -S 64w $(DRIVER)
|
# install -S 64w $(DRIVER)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -c $? $@
|
install -o root -c $? $@
|
||||||
# install -o root -cs $? $@
|
# install -o root -cs $? $@
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ $(PCI):
|
||||||
cd $d/libpci && $(MAKE)
|
cd $d/libpci && $(MAKE)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -26,9 +26,9 @@ $(DRIVER): $(OBJ)
|
||||||
install -S 256w $(DRIVER)
|
install -S 256w $(DRIVER)
|
||||||
|
|
||||||
# install with other drivers
|
# install with other drivers
|
||||||
install: /usr/sbin/drivers/$(DRIVER)
|
install: /usr/sbin/$(DRIVER)
|
||||||
cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
|
cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
|
||||||
/usr/sbin/drivers/$(DRIVER): $(DRIVER)
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||||
install -o root -cs $? $@
|
install -o root -cs $? $@
|
||||||
|
|
||||||
# clean up local files
|
# clean up local files
|
||||||
|
|
|
@ -629,7 +629,7 @@ message *m; /* request message to TTY */
|
||||||
*/
|
*/
|
||||||
while (nb_receive(ANY, m) == OK) {
|
while (nb_receive(ANY, m) == OK) {
|
||||||
switch(m->m_type) {
|
switch(m->m_type) {
|
||||||
case NEW_KMESS: do_new_kmess(m); break;
|
case SYS_EVENT: do_new_kmess(m); break;
|
||||||
case DIAGNOSTICS: do_diagnostics(m); break;
|
case DIAGNOSTICS: do_diagnostics(m); break;
|
||||||
default: ; /* do nothing */
|
default: ; /* do nothing */
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,9 +204,18 @@ PUBLIC void main(void)
|
||||||
expire_timers(); /* run watchdogs of expired timers */
|
expire_timers(); /* run watchdogs of expired timers */
|
||||||
continue; /* contine to check for events */
|
continue; /* contine to check for events */
|
||||||
}
|
}
|
||||||
case NEW_KMESS: /* new kernel message is available */
|
case SYS_EVENT: { /* new kernel message is available */
|
||||||
do_new_kmess(&tty_mess);
|
sigset_t sigset = (sigset_t) tty_mess.NOTIFY_ARG;
|
||||||
|
if (sigismember(&sigset, SIGKMESS)) {
|
||||||
|
do_new_kmess(&tty_mess);
|
||||||
|
} else if (sigismember(&sigset, SIGTERM)) {
|
||||||
|
cons_stop(); /* first switch to primary console */
|
||||||
|
} else if (sigismember(&sigset, SIGKSTOP)) {
|
||||||
|
cons_stop(); /* switch to primary console */
|
||||||
|
do_panic_dumps(&tty_mess);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
case HARD_STOP: { /* MINIX is going down */
|
case HARD_STOP: { /* MINIX is going down */
|
||||||
static int stop = 0; /* expect two HARD_STOP messages */
|
static int stop = 0; /* expect two HARD_STOP messages */
|
||||||
if (! stop++) {
|
if (! stop++) {
|
||||||
|
|
Loading…
Reference in a new issue