Remove ability to pass commands to bootloader

This commit is contained in:
Erik van der Kouwe
2012-11-22 17:30:22 +01:00
parent 4a711bea63
commit 57c748b968
14 changed files with 35 additions and 123 deletions

View File

@@ -118,10 +118,6 @@ __dead void arch_shutdown(int how)
reset();
}
if (how == RBT_DEFAULT) {
how = RBT_RESET;
}
switch (how) {
case RBT_HALT:
/* Stop */
@@ -133,7 +129,8 @@ __dead void arch_shutdown(int how)
poweroff();
NOT_REACHABLE;
default:
default:
case RBT_DEFAULT:
case RBT_REBOOT:
case RBT_RESET:
/* Reset the system by forcing a processor shutdown.

View File

@@ -349,7 +349,7 @@ void minix_shutdown(timer_t *tp)
{
/* This function is called from prepare_shutdown or stop_sequence to bring
* down MINIX. How to shutdown is in the argument: RBT_HALT (return to the
* monitor), RBT_MONITOR (execute given code), RBT_RESET (hard reset).
* monitor), RBT_RESET (hard reset).
*/
#ifdef CONFIG_SMP
/*

View File

@@ -3,9 +3,6 @@
*
* The parameters for this kernel call are:
* m1_i1: ABRT_HOW (how to abort, possibly fetch monitor params)
* m1_i2: ABRT_MON_ENDPT (proc nr to get monitor params from)
* m1_i3: ABRT_MON_LEN (length of monitor params)
* m1_p1: ABRT_MON_ADDR (virtual address of params)
*/
#include "kernel/system.h"
@@ -23,20 +20,6 @@ int do_abort(struct proc * caller, message * m_ptr)
*/
int how = m_ptr->ABRT_HOW;
/* See if the monitor is to run the specified instructions. */
if (how == RBT_MONITOR) {
int p;
static char paramsbuffer[512];
int len;
len = MIN(m_ptr->ABRT_MON_LEN, sizeof(paramsbuffer)-1);
if((p=data_copy(m_ptr->ABRT_MON_ENDPT, (vir_bytes) m_ptr->ABRT_MON_ADDR,
KERNEL, (vir_bytes) paramsbuffer, len)) != OK) {
return p;
}
paramsbuffer[len] = '\0';
}
/* Now prepare to shutdown MINIX. */
prepare_shutdown(how);
return(OK); /* pro-forma (really EDISASTER) */