Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/sparc64/loader/main.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
#include <machine/upa.h> | #include <machine/upa.h> | ||||
#include <machine/ver.h> | #include <machine/ver.h> | ||||
#include <machine/vmparam.h> | #include <machine/vmparam.h> | ||||
#include "bootstrap.h" | #include "bootstrap.h" | ||||
#include "libofw.h" | #include "libofw.h" | ||||
#include "dev_net.h" | #include "dev_net.h" | ||||
extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[]; | extern char bootprog_info[]; | ||||
enum { | enum { | ||||
HEAPVA = 0x800000, | HEAPVA = 0x800000, | ||||
HEAPSZ = 0x1000000, | HEAPSZ = 0x1000000, | ||||
LOADSZ = 0x1000000 /* for kernel and modules */ | LOADSZ = 0x1000000 /* for kernel and modules */ | ||||
}; | }; | ||||
/* At least Sun Fire V1280 require page sized allocations to be claimed. */ | /* At least Sun Fire V1280 require page sized allocations to be claimed. */ | ||||
▲ Show 20 Lines • Show All 799 Lines • ▼ Show 20 Lines | if (bootpath[strlen(bootpath) - 2] == ':' && | ||||
bootpath[strlen(bootpath) - 1] == 'f') | bootpath[strlen(bootpath) - 1] == 'f') | ||||
bootpath[strlen(bootpath) - 1] = 'a'; | bootpath[strlen(bootpath) - 1] = 'a'; | ||||
env_setenv("currdev", EV_VOLATILE, bootpath, | env_setenv("currdev", EV_VOLATILE, bootpath, | ||||
ofw_setcurrdev, env_nounset); | ofw_setcurrdev, env_nounset); | ||||
env_setenv("loaddev", EV_VOLATILE, bootpath, | env_setenv("loaddev", EV_VOLATILE, bootpath, | ||||
env_noset, env_nounset); | env_noset, env_nounset); | ||||
printf("\n"); | printf("\n%s", bootprog_info); | ||||
printf("%s, Revision %s\n", bootprog_name, bootprog_rev); | |||||
printf("(%s, %s)\n", bootprog_maker, bootprog_date); | |||||
printf("bootpath=\"%s\"\n", bootpath); | printf("bootpath=\"%s\"\n", bootpath); | ||||
/* Give control to the machine independent loader code. */ | /* Give control to the machine independent loader code. */ | ||||
interact(NULL); | interact(NULL); | ||||
return (1); | return (1); | ||||
} | } | ||||
COMMAND_SET(heap, "heap", "show heap usage", command_heap); | COMMAND_SET(heap, "heap", "show heap usage", command_heap); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |