| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 30/35] arm : acpi map XSDT table to dom0
 Hi Parth, On 04/02/2015 14:02, parth.dixit@xxxxxxxxxx wrote: Please add a comment to specify what is the 2 new tables. No space before the last ) Also acpi_os_map_memory can fail. + size = table->length ; No space before the ; + acpi_os_unmap_memory(table, sizeof(struct acpi_table_header) ); Ditto + + table = acpi_os_map_memory(addr, size); acpi_os_map_memory can fail + size += ( NR_NEW_XEN_TABLES*sizeof(acpi_native_uint) ); (NR_NEW_XEN_TABLELS * sizeof(...)); + new_xsdt = ACPI_ALLOCATE_ZEROED(size); + if( new_xsdt == NULL) if ( ... ) + return -ENOMEM; + ACPI_MEMCPY(new_xsdt, table,table->length); Missing space after the comma. Too much space in general. + table_entry += + ( ( (size - sizeof(struct acpi_table_header) ) / + sizeof(acpi_native_uint) ) ); Ditto + + checksum = acpi_tb_checksum(ACPI_CAST_PTR(u8, table), table->length); + table->checksum = (u8)( table->checksum - checksum ); (table->checksum - checksum); Also I'm not sure the the u8 cast is useful. Why do you set addr, but only use below rather than rsdp? + rsdt = acpi_os_map_memory(addr, sizeof(struct acpi_table_rsdp) ); No space before ) + addr = rsdt->xsdt_physical_address; + map_xsdt_table(d, &addr); + rsdt->xsdt_physical_address = addr; + acpi_os_unmap_memory(rsdt, sizeof(struct acpi_table_rsdp) ); No space before ) Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |