diff options
| author | Michael Brown | 2012-03-18 17:45:04 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-18 18:05:37 +0100 |
| commit | 196f0bb081db462bc0f9a9462f47c9639101204b (patch) | |
| tree | 05e772f3202b4c0f326491c90af0cb5dbf7eb147 /src/arch | |
| parent | [crypto] Remove obsolete AXTLS RSA algorithm (diff) | |
| download | ipxe-196f0bb081db462bc0f9a9462f47c9639101204b.tar.gz ipxe-196f0bb081db462bc0f9a9462f47c9639101204b.tar.xz ipxe-196f0bb081db462bc0f9a9462f47c9639101204b.zip | |
[rng] Allow entropy_enable() to return an error
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/interface/pcbios/rtc_entropy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pcbios/rtc_entropy.c b/src/arch/i386/interface/pcbios/rtc_entropy.c index 03189659e..257cf08a0 100644 --- a/src/arch/i386/interface/pcbios/rtc_entropy.c +++ b/src/arch/i386/interface/pcbios/rtc_entropy.c @@ -165,12 +165,15 @@ static void rtc_disable_int ( void ) { /** * Enable entropy gathering * + * @ret rc Return status code */ -static void rtc_entropy_enable ( void ) { +static int rtc_entropy_enable ( void ) { rtc_hook_isr(); enable_irq ( RTC_IRQ ); rtc_enable_int(); + + return 0; } /** |
