Project

General

Profile

Statistics
| Revision:

root / lab3 / utils.c @ 33

History | View | Annotate | Download (222 Bytes)

1 30 up20180655
#include <lcom/lcf.h>
2
3
#include <stdint.h>
4
5
int (util_sys_inb)(int port, uint8_t *value) {
6
    if(value == NULL) return 1;
7
    uint32_t n = 0;
8
    if(sys_inb(port, &n)) return 1;
9
    *value = n;
10
    return 0;
11
}