LGTM!

On Fri, Jun 17, 2016 at 12:31 PM, Barret Rhoden <[email protected]>
wrote:

> Once we start using the SRATs for something, we'll need to parse the extra
> ones.
>
> Signed-off-by: Barret Rhoden <[email protected]>
> ---
>
> Updated to warn.
>
>  kern/drivers/dev/acpi.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/kern/drivers/dev/acpi.c b/kern/drivers/dev/acpi.c
> index 66ab1a08e552..b891a2c9eab6 100644
> --- a/kern/drivers/dev/acpi.c
> +++ b/kern/drivers/dev/acpi.c
> @@ -847,8 +847,11 @@ static struct Atable *parsesrat(struct Atable *parent,
>         int i;
>         struct Srat *st;
>
> -       if (srat != NULL)
> -               panic("acpi: two SRATs?\n");
> +       /* TODO: Parse the second SRAT */
> +       if (srat != NULL) {
> +               warn("Multiple SRATs detected and ignored!");
> +               return NULL;
> +       }
>
>         t = mkatable(parent, SRAT, name, p, rawsize, 0);
>         slice_init(&slice);
> --
> 2.8.0.rc3.226.g39d4020
>
> --
> You received this message because you are subscribed to the Google Groups
> "Akaros" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to