Skip to content

Commit e0d68d9

Browse files
committed
Add Unimplemented error code.
Using unimplemented! in the BIOS is bad because we cannot panic across an FFI boundary.
1 parent eb7c01f commit e0d68d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ pub type OsStartFn = extern "C" fn(&Api) -> !;
3636
pub enum Error {
3737
/// An invalid device number was given to the function.
3838
InvalidDevice,
39+
/// That function doesn't work at this time.
40+
Unimplemented,
3941
/// The underlying hardware reported some error. The numeric code is BIOS
4042
/// implementation specific but may give some clues.
4143
DeviceError(u16),

0 commit comments

Comments
 (0)