summaryrefslogtreecommitdiff
path: root/util/dell-flash-unlock/dell_flash_unlock.c
diff options
context:
space:
mode:
authorLeah Rowe <vimuser@noreply.codeberg.org>2024-05-02 02:33:52 +0000
committerLeah Rowe <vimuser@noreply.codeberg.org>2024-05-02 02:33:52 +0000
commit05c3f4938acb9a8901560ad30a66d871e75912a3 (patch)
tree3ccb26f8be853df8ff64fcc85b55a0e5e79190cc /util/dell-flash-unlock/dell_flash_unlock.c
parent5c3d81fff9f90b19f09c95fae43eacff10ab932e (diff)
parent61f66a46eab2480d45b14a14889e082678daaa80 (diff)
Merge pull request 'dell-flash-unlock-updates' (#206) from nic3-14159/lbmk:dell-flash-unlock-updates into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/206
Diffstat (limited to 'util/dell-flash-unlock/dell_flash_unlock.c')
-rw-r--r--util/dell-flash-unlock/dell_flash_unlock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/dell-flash-unlock/dell_flash_unlock.c b/util/dell-flash-unlock/dell_flash_unlock.c
index 174a1c92..d59f5d5b 100644
--- a/util/dell-flash-unlock/dell_flash_unlock.c
+++ b/util/dell-flash-unlock/dell_flash_unlock.c
@@ -15,7 +15,7 @@
int get_fdo_status(void);
int check_lpc_decode(void);
-void ec_set_fdo();
+void ec_set_fdo(void);
void write_ec_reg(uint8_t index, uint8_t data);
void send_ec_cmd(uint8_t cmd);
int wait_ec(void);
@@ -96,6 +96,7 @@ main(int argc, char *argv[])
"You can now shutdown the system.\n");
}
}
+ sys_iopl(0);
return errno;
}
@@ -141,7 +142,7 @@ check_lpc_decode(void)
}
void
-ec_set_fdo()
+ec_set_fdo(void)
{
/* EC FDO command arguments for reference:
* 0 = Query EC FDO status