Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1971 → Rev 1972

/trunk/kernel/genarch/src/ofw/ofw_tree.c
37,6 → 37,7
 
#include <genarch/ofw/ofw_tree.h>
#include <arch/memstr.h>
#include <mm/slab.h>
#include <func.h>
#include <print.h>
#include <panic.h>
236,8 → 237,10
*/
static void ofw_tree_node_print(const ofw_tree_node_t *node, const char *path)
{
char p[PATH_MAX_LEN];
char *p;
 
p = (char *) malloc(PATH_MAX_LEN, 0);
 
if (node->parent) {
snprintf(p, PATH_MAX_LEN, "%s/%s", path, node->da_name);
printf("%s\n", p);
248,9 → 251,11
 
if (node->child)
ofw_tree_node_print(node->child, p);
 
if (node->peer)
ofw_tree_node_print(node->peer, path);
 
free(p);
}
 
/** Print the structure of the OpenFirmware device tree. */
/trunk/kernel/generic/src/console/kconsole.c
204,7 → 204,7
*/
static int cmdtab_compl(char *name)
{
char output[MAX_SYMBOL_NAME+1];
static char output[MAX_SYMBOL_NAME+1];
link_t *startpos = NULL;
const char *foundtxt;
int found = 0;
244,7 → 244,7
{
static int histposition = 0;
 
char tmp[MAX_CMDLINE+1];
static char tmp[MAX_CMDLINE+1];
int curlen = 0, position = 0;
char *current = history[histposition];
int i;
433,7 → 433,7
 
static int parse_int_arg(char *text, size_t len, unative_t *result)
{
char symname[MAX_SYMBOL_NAME];
static char symname[MAX_SYMBOL_NAME];
uintptr_t symaddr;
bool isaddr = false;
bool isptr = false;
/trunk/boot/arch/sparc64/loader/boot.S
30,8 → 30,10
#include <stack.h>
#include <register.h>
 
#define INITIAL_STACK_SIZE 1024
#define INITIAL_STACK_SIZE 8192
 
#define NWINDOWS 8
 
.register %g2, #scratch
.register %g3, #scratch
.register %g6, #scratch
54,12 → 56,15
 
.align 8
1:
flushw
 
/*
* Disable interrupts and disable address masking.
*/
wrpr %g0, PSTATE_PRIV_BIT, %pstate
wrpr %g0, NWINDOWS - 2, %cansave ! set maximum saveable windows
wrpr %g0, 0, %canrestore ! get rid of windows we will never need again
wrpr %g0, 0, %otherwin ! make sure the window state is consistent
wrpr %g0, NWINDOWS - 1, %cleanwin ! prevent needless clean_window traps for kernel
 
set initial_stack_top, %sp
add %sp, -STACK_BIAS, %sp
/trunk/boot/arch/sparc64/loader/main.c
37,12 → 37,12
#include <align.h>
 
bootinfo_t bootinfo;
component_t components[COMPONENTS];
 
void bootstrap(void)
{
printf("HelenOS SPARC64 Bootloader\n");
 
component_t components[COMPONENTS];
init_components(components);
 
if (!ofw_memmap(&bootinfo.memmap)) {