Here is a example : ///// capsule_header_array[capsule_index] =
(efi_capsule_header_t *)kmalloc (
capsule_header_size + PAGE_SIZE, GFP_KERNEL);
if (capsule_header_array[capsule_index] == NULL) {
printk(KERN_ALERT "!!!! Oops - constructcapsuleheaderarray() malloc 0x%08x
fail !!!!\n",
(unsigned int)(capsule_header_size + PAGE_SIZE));
return -1;
}
//
// make it page aligned
//
capsule_header_array[capsule_index] = (efi_capsule_header_t *) \
(unsigned long)PAGE_ALIGN((unsigned long)capsule_header_array[capsule_index]); //////////////////////// Thanks for any help~! ------------------------------ Best
Regards! make
a difference. Calix |