Revision 9
minor changes
utils.c | ||
---|---|---|
21 | 21 |
/* To be implemented by the students */ |
22 | 22 |
if(value == NULL) return 1; |
23 | 23 |
uint32_t n = 0; |
24 |
int ret = sys_inb(port, &n);
|
|
24 |
if(sys_inb(port, &n)) return 1;
|
|
25 | 25 |
*value = n; |
26 |
return ret;
|
|
26 |
return 0;
|
|
27 | 27 |
} |
Also available in: Unified diff