3 * Copyright (C) 2018 Google Inc.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <libpayload-config.h>
16 #include <libpayload.h>
17 #include "linuxcheck.h"
22 for (i
= 0; i
< strlen(s
); i
++)
28 static char *hex
= "0123456789abcdef";
29 outb(hex
[c
& 0xf], 0x3f8);
45 hex16((u16
)(c
>> 16));