Lines Matching refs:bp

138 static void setup_boot_params(struct boot_params *bp, struct setup_header *sh)  in setup_boot_params()  argument
140 bp->screen_info.orig_video_mode = 0; in setup_boot_params()
141 bp->screen_info.orig_video_lines = 0; in setup_boot_params()
142 bp->screen_info.orig_video_cols = 0; in setup_boot_params()
143 bp->alt_mem_k = 128*1024; // hard coded 128M mem here, since SFI will override it in setup_boot_params()
144 memcpy(&bp->hdr, sh, sizeof (struct setup_header)); in setup_boot_params()
145 bp->hdr.type_of_loader = 0xff; //bootstub is unknown bootloader for kernel :) in setup_boot_params()
146 bp->hdr.hardware_subarch = X86_SUBARCH_MRST; in setup_boot_params()
149 static u32 bzImage_setup(struct boot_params *bp, struct setup_header *sh) in bzImage_setup() argument
167 bp->hdr.ramdisk_size = aosp->ramdisk_size; in bzImage_setup()
180 bp->hdr.ramdisk_size = *(u32 *)INITRD_SIZE_OFFSET; in bzImage_setup()
185 bp->hdr.cmd_line_ptr = BOOT_CMDLINE_OFFSET; in bzImage_setup()
186 bp->hdr.cmdline_size = cmdline_len; in bzImage_setup()
187 bp->hdr.ramdisk_image = (bp->alt_mem_k*1024 - bp->hdr.ramdisk_size) & 0xFFFFF000; in bzImage_setup()
191 memcpy((u8*)bp->hdr.ramdisk_image, initramfs, bp->hdr.ramdisk_size); in bzImage_setup()
465 struct boot_params *bp = (struct boot_params *)BOOT_PARAMS_OFFSET; in bootstub() local
483 memset(bp, 0, sizeof (struct boot_params)); in bootstub()
486 nr_entries = get_e820_by_bios(bp->e820_map); in bootstub()
487 bp->e820_entries = (nr_entries > 0) ? nr_entries : 0; in bootstub()
489 sfi_setup_mmap(bp, mb_mmap); in bootstub()
497 sfi_add_e820_entry(bp, mb_mmap, IMR6_START_ADDRESS, imr_size, E820_RESERVED); in bootstub()
501 sfi_add_e820_entry(bp, mb_mmap, IMR7_START_ADDRESS, imr7_size, E820_RESERVED); in bootstub()
509 setup_boot_params(bp, sh); in bootstub()
514 jmp = bzImage_setup(bp, sh); in bootstub()