Displaying 1 result from an estimated 1 matches for "initrd_data".
Did you mean:
init_data
2007 Apr 26
2
boot 32 or 64 kernel depending on cpu
...ng.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <console.h>
#include <syslinux/loadfile.h>
#include <syslinux/linux.h>
#include "cpuid.h"
int main(int argc, char *argv[])
{
const char *kernel, *initrd;
void *kernel_data, *initrd_data;
struct initramfs *rd;
size_t kernel_len, initrd_len;
char cmdline[1024];
uint32_t mem_limit = 0;
uint16_t video_mode = 0;
int i;
unsigned p;
char _b[64];
#define pause() (fgets(_b, sizeof _b, stdin))
s_cpu cpu;
openconsole(&dev_stdcon_r, &dev_stdcon_w);
for (i = 0; i < ar...