aboutsummaryrefslogtreecommitdiff
path: root/src/ata.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-02-13 18:49:24 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-02-13 18:49:24 -0500
commit59c7574767838cd53419779e4cbc2162c14a4ac6 (patch)
tree680035327b21da431fe5dffb2ae859ea946d2e0a /src/ata.c
parente1920bec2f86ba1b14e3fefa56d0482f5e77bf2e (diff)
downloadseabios-hppa-59c7574767838cd53419779e4cbc2162c14a4ac6.zip
seabios-hppa-59c7574767838cd53419779e4cbc2162c14a4ac6.tar.gz
seabios-hppa-59c7574767838cd53419779e4cbc2162c14a4ac6.tar.bz2
Add some ASSERT32FLAT() to help compiler eliminate dead code.
The function pointer passed to run_thread() can confuse the compiler into thinking the function needs to be emitted. Add ASSERT32FLAT() to help the compiler eliminate this code.
Diffstat (limited to 'src/ata.c')
-rw-r--r--src/ata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ata.c b/src/ata.c
index a2a670b..ceb08f2 100644
--- a/src/ata.c
+++ b/src/ata.c
@@ -1060,6 +1060,7 @@ ata_init(void)
void
ata_setup(void)
{
+ ASSERT32FLAT();
if (!CONFIG_ATA)
return;