coreboot/src/include/params.h
Ronald G. Minnich e94eeb3d9d Patches for tyson that do the following:
Added set_initrd() to params.h and params.c.

Added PRINTK macro and KERN_SPEW to printk.h.

Changed fill_inbuf.c to accept zkernel_start and zknernel_mask as
variables that can be set by linuxbiosmain().

Changed linuxbiosmain() to allow custom code to modify some parameters
such as where the kernel image is located in ROM, the initrd parameters
and the command line.

Change most of the DBG's in newpci.c to PRINTK(KERN_SPEW...  This was
the worst offender when DEBUG was defined.  Some of it was changed to
KERN_DEBUG.

There are no new files this time, however,
freebios-010214.orig/src/superio/SMC/fdc37n769/superio.inc
remains and needs to be deleted and then 'cvs rm'.

None of these changes should break any other code.  The same
ZKERNEL_START, ZKERNEL_MASK and CMD_LINE defines are still used, but
are now all used in linuxbiosmain() and used to initialize variables
that can later be changed rather than used directly.

These changes allow me to choose between two kernel images, optionally
use an initrd image, load the initrd image and set the kernel command
line as needed.
2001-02-15 15:23:06 +00:00

14 lines
550 B
C

/* ../lib/params.c */
void init_params(unsigned char *empty_zero_page);
void set_memory_size(unsigned char *empty_zero_page,
unsigned long ext_memory_size,
unsigned long alt_memory_size);
void set_root_rdonly(unsigned char *empty_zero_page);
void set_command_line(unsigned char *empty_zero_page,
unsigned char *cmdline);
unsigned char *get_empty_zero_page(void);
void set_display(unsigned char *empty_zero_page, int rows, int cols);
void set_initrd(unsigned char *empty_zero_page,
unsigned long start,
unsigned long size);