int len;
char buf[4096];
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
-
if (argc < 2) {
fprintf(stderr, "Usage: %s filename...\n", argv[0]);
return 1;
addr_t load_base;
static const char cmldr_signature[8] = "cmdcons";
- openconsole(&dev_null_r, &dev_stdcon_w);
-
drivename = "boot";
partition = NULL;
int main(int argc, char *argv[])
{
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2 || argc > 3) {
fprintf(stderr, "Usage: config <filename> [<directory>]\n");
return 1;
uint32_t leaf, counter;
uint32_t eax, ebx, ecx, edx;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2 || argc > 4) {
printf("Usage: %s leaf [counter]\n", argv[0]);
exit(1);
int main(void)
{
s_cpu cpu;
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
for (;;) {
detect_cpu(&cpu);
{
int rv;
- openconsole(&dev_rawcon_r, &dev_stdcon_w);
-
if (getscreensize(1, &rows, &cols)) {
/* Unknown screen size? */
rows = 24;
(void)argc;
(void)argv;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
for (int disk = 0x80; disk < 0xff; disk++) {
memset(d, 0, sizeof(struct driveinfo));
d->disk = disk;
{
char buffer[1024];
s_dmi dmi;
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
if (dmi_iterate(&dmi) == -ENODMITABLE) {
printf("No DMI Structure found\n");
void *data;
size_t data_len;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2) {
error("Usage: elf.c32 elf_file arguments...\n");
return 1;
struct match *list, *match;
struct pci_domain *pci_domain;
- openconsole(&dev_null_r, &dev_stdcon_w);
pci_domain = pci_scan();
if (pci_domain) {
int main(int argc, const char *argv[])
{
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2) {
printf("Usage: gpxecmd command...\n");
return 1;
int i;
struct in_addr addr;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
for (i = 1; i < argc; i++) {
addr = dnsresolve(argv[i]);
char **args[2];
int arg = 0;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc)
arg++;
args[0] = &argv[arg];
size_t map_size;
void *kbdmap;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc != 2) {
error("Usage: kbdmap mapfile\n");
return 1;
size_t dhcplen;
char **argp, *arg, *p;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
(void)argc;
argp = argv + 1;
{
int rv;
- openconsole(&dev_rawcon_r, &dev_stdcon_w);
-
if (getscreensize(1, &rows, &cols)) {
/* Unknown screen size? */
rows = 24;
int main(void)
{
- openconsole(&dev_null_r, &dev_stdcon_w);
-
dump_legacy();
dump_e820();
(void)argc;
(void)argv;
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
-
/* Scanning to detect pci buses and devices */
printf("PCI: Scanning PCI BUS\n");
pci_domain = pci_scan();
size_t data_len;
addr_t where;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 3) {
error("Usage: pmload.c32 bin_file address arguments...\n");
return 1;
int rv = 0;
char pwd[PATH_MAX], *pwdptr;
- openconsole(&dev_rawcon_r, &dev_stdcon_w);
pwdptr = getcwd(pwd, PATH_MAX);
if (pwdptr) {
if (pwd[0] != 0)
int main(int argc, const char *argv[])
{
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2) {
printf("Usage: sanboot rootpath\n");
return 1;
void *data;
size_t data_len;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc != 2) {
error("Usage: sdi.c32 sdi_file\n");
return 1;
int main(void)
{
- openconsole(&dev_rawcon_r, &dev_stdcon_w);
-
print_modes();
return 0;
}
int main(void)
{
s_vpd vpd;
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
if (vpd_decode(&vpd) == -ENOVPDTABLE) {
printf("No VPD Structure found\n");
int arg = 0;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
/* If no argument got passed, let's show the usage */
if (argc == 1) {
usage();
{
struct upload_backend **bep, *be;
- openconsole(&dev_null_r, &dev_stdcon_w);
fputs(version, stdout);
if (argc < 2)