[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem in usage of grub_errno...
From: |
Vesa Jääskeläinen |
Subject: |
Re: problem in usage of grub_errno... |
Date: |
Mon, 19 Dec 2005 17:42:48 +0200 |
User-agent: |
Thunderbird 1.4.1 (Windows/20051006) |
Tomáš Ebenlendr wrote:
>> Error stack is statically allocated and it is protected so that it
>> cannot overflow. Error stack is defined as being static to file
>> kern/err.c so there is no direct access possible to error stack.
>>
>> Error stack is emptied in grub_print_error function. (And this is called
>> before prompt is printed to screen)
>>
>> Idea of the error stack is to record all error messages before they are
>> printed.
>>
>> Or did I miss your idea with the "unwanted stack overflow" ?
>
> Okay. There is only minor issue then, that some loop over same
> error pushing function may fill up the stack. But it is not problem
> if first error (in the stack) and last error (in grub_errno) is printed
> (at prompt time).
Yes it is possible that some part might fill up the stack, that's way
there is a protection. When error is printed, whole stack will be dumped
to screen. So all error stack entries containing error code other than
GRUB_ERR_NONE will get displayed.
My idea is not to use this error stacking feature in all the place. Only
in places where there is a need to have a clean error state (grub_errno
== GRUB_ERR_NONE). This is because if grub_errno is being set, some
functions are required to fail.
- Re: problem in usage of grub_errno..., (continued)
- Re: problem in usage of grub_errno..., Marco Gerards, 2005/12/09
- Re: problem in usage of grub_errno..., Vesa Jääskeläinen, 2005/12/10
- Re: problem in usage of grub_errno..., Yoshinori K. Okuji, 2005/12/10
- Re: problem in usage of grub_errno..., Vesa Jääskeläinen, 2005/12/10
- Re: problem in usage of grub_errno..., Vesa Jääskeläinen, 2005/12/17
- Re: problem in usage of grub_errno..., Tomáš Ebenlendr, 2005/12/17
- Re: problem in usage of grub_errno..., Vesa Jääskeläinen, 2005/12/17
- Re: problem in usage of grub_errno..., Joel Buckley, 2005/12/19
- Re: problem in usage of grub_errno..., Vesa Jääskeläinen, 2005/12/19
- Re: problem in usage of grub_errno..., Tomáš Ebenlendr, 2005/12/19
- Re: problem in usage of grub_errno...,
Vesa Jääskeläinen <=