- Update romcc to version 0.27 and add more tests.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@865 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
16
util/romcc/tests/simple_test24.c
Normal file
16
util/romcc/tests/simple_test24.c
Normal file
@@ -0,0 +1,16 @@
|
||||
void smbus_read_byte(void)
|
||||
{
|
||||
unsigned char host_status_register;
|
||||
unsigned char byte;
|
||||
int result;
|
||||
|
||||
host_status_register = __builtin_inb(0x1234);
|
||||
|
||||
/* read results of transaction */
|
||||
byte = __builtin_inb(0x4567);
|
||||
|
||||
result = byte;
|
||||
if (host_status_register != 0x02) {
|
||||
result = -1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user