Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 852 → Rev 851

/kernel/trunk/arch/mips32/src/drivers/arc.c
36,8 → 36,6
#include <interrupt.h>
#include <align.h>
#include <console/console.h>
#include <console/kconsole.h>
#include <console/cmd.h>
 
/* This is a good joke, SGI HAS different types than NT bioses... */
/* Here is the SGI type */
154,9 → 152,8
 
desc = arc_entry->getmemorydescriptor(NULL);
while (desc) {
printf("%s: %d(%P) (size: %dKB)\n",basetypes[desc->type],
printf("%s: %d (size: %dKB)\n",basetypes[desc->type],
desc->basepage * ARC_FRAME,
desc->basepage * ARC_FRAME,
desc->basecount*ARC_FRAME/1024);
desc = arc_entry->getmemorydescriptor(desc);
}
175,18 → 172,6
}
 
static int cmd_reboot(cmd_arg_t *argv)
{
arc_entry->reboot();
return 0;
}
static cmd_info_t reboot_info = {
.name = "reboot",
.description = "Reboot computer",
.func = cmd_reboot,
.argc = 0
};
 
/** Initialize ARC structure
*
* @return 0 - ARC OK, -1 - ARC does not exist
204,10 → 189,6
arc_putchar('C');
arc_putchar('\n');
 
/* Add command for resetting the computer */
cmd_initialize(&reboot_info);
cmd_register(&reboot_info);
 
return 0;
}
 
323,8 → 304,9
 
total += basesize;
zone_create(ADDR2PFN(base), SIZE2FRAMES(basesize),
ADDR2PFN(base), 0);
zone_create(ADDR2PFN(base),
SIZE2FRAMES(ALIGN_DOWN(basesize,FRAME_SIZE)),
ADDR2PFN(base),0);
}
desc = arc_entry->getmemorydescriptor(desc);
}