Added license identifiers to all files
This commit is contained in:
parent
977ea64457
commit
644508ee45
22 changed files with 28 additions and 4 deletions
|
|
@ -1,8 +1,9 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include <kernel/common.h>
|
||||
#include <dev/serial.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
static inline void printf_out(char c)
|
||||
{
|
||||
serial_write(c);
|
||||
|
|
@ -74,7 +75,7 @@ int printf(const char *restrict fmt, ...)
|
|||
break;
|
||||
case 'x':
|
||||
i = va_arg(args, int);
|
||||
for (int j = 0; j < (2 * sizeof(i)); j++) {
|
||||
for (uint32_t j = 0; j < (2 * sizeof(i)); j++) {
|
||||
int sel = ((sizeof(i) * 2) - j - 1) * 4;
|
||||
int num = (i >> sel) & 0xF;
|
||||
printf_out(convert[num]);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include <string.h>
|
||||
|
||||
void *memcpy(void *dest, const void *src, size_t num)
|
||||
|
|
|
|||
Loading…
Reference in a new issue