Revision 3
returns sys
utils.c | ||
---|---|---|
20 | 20 |
int (util_sys_inb)(int port, uint8_t *value) { |
21 | 21 |
/* To be implemented by the students */ |
22 | 22 |
uint32_t b32; |
23 |
sys_inb(port,&b32);
|
|
23 |
if(sys_inb(port,&b32)!=0)return 1;
|
|
24 | 24 |
//printf("%x",b32); |
25 | 25 |
*value=b32&0xFF; |
26 | 26 |
//printf("%x\n",*value); |
Also available in: Unified diff