
3 Apr
2020
3 Apr
'20
3:25 p.m.
On Fri, Apr 03, 2020 at 04:24:06PM +0300, Andy Shevchenko wrote:
On Mon, Mar 30, 2020 at 05:12:59PM -0600, Simon Glass wrote:
The current code uses an address but a pointer would result in fewer casts. Also it repeats the alignment code in a lot of places so this would be better done in a helper function.
Update write_acpi_tables() to make use of the new acpi_ctx structure, adding a few helpers to clean things up.
...
+void acpi_inc(struct acpi_ctx *ctx, uint amount);
inc with amount is not inc, it's rather add.
...or pad if you wish.
- acpi_inc_align() - Increment the ACPI output pointer by a bit and align
--
With Best Regards,
Andy Shevchenko