Added license identifiers to all files

This commit is contained in:
Michael Shaw 2023-02-28 22:14:06 -05:00
commit 644508ee45
22 changed files with 28 additions and 4 deletions

View file

@ -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]);

View file

@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
void *memcpy(void *dest, const void *src, size_t num)