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,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/common.h>
|
#include <kernel/common.h>
|
||||||
#include <kernel/acpi.h>
|
#include <kernel/acpi.h>
|
||||||
#include <dev/apic.h>
|
#include <dev/apic.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/common.h>
|
#include <kernel/common.h>
|
||||||
#include <kernel/pio.h>
|
#include <kernel/pio.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _APIC_H_
|
#ifndef _APIC_H_
|
||||||
#define _APIC_H_
|
#define _APIC_H_
|
||||||
|
|
||||||
|
|
@ -33,6 +34,7 @@
|
||||||
#define LAPIC_LVT_ERR 0x370
|
#define LAPIC_LVT_ERR 0x370
|
||||||
#define LAPIC_INIT_COUNT 0x380
|
#define LAPIC_INIT_COUNT 0x380
|
||||||
#define LAPIC_CUR_COUNT 0x390
|
#define LAPIC_CUR_COUNT 0x390
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#define LAPIC_DIVIDE_CONFIG 0x3E0
|
#define LAPIC_DIVIDE_CONFIG 0x3E0
|
||||||
|
|
||||||
#ifndef __ASM__
|
#ifndef __ASM__
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _SERIAL_H_
|
#ifndef _SERIAL_H_
|
||||||
#define _SERIAL_H_
|
#define _SERIAL_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _ACPI_H_
|
#ifndef _ACPI_H_
|
||||||
#define _ACPI_H_
|
#define _ACPI_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _BITWISE_H_
|
#ifndef _BITWISE_H_
|
||||||
#define _BITWISE_H_
|
#define _BITWISE_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _COMMON_H_
|
#ifndef _COMMON_H_
|
||||||
#define _COMMON_H_
|
#define _COMMON_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _GDT_H_
|
#ifndef _GDT_H_
|
||||||
#define _GDT_H_
|
#define _GDT_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _IDT_H_
|
#ifndef _IDT_H_
|
||||||
#define _IDT_H_
|
#define _IDT_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _MSR_H_
|
#ifndef _MSR_H_
|
||||||
#define _MSR_H_
|
#define _MSR_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _PIO_H_
|
#ifndef _PIO_H_
|
||||||
#define _PIO_H_
|
#define _PIO_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: 0BSD
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIMINE_H
|
#ifndef _LIMINE_H
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _STDIO_H_
|
#ifndef _STDIO_H_
|
||||||
#define _STDIO_H_
|
#define _STDIO_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#ifndef _STRING_H_
|
#ifndef _STRING_H_
|
||||||
#define _STRING_H_
|
#define _STRING_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/acpi.h>
|
#include <kernel/acpi.h>
|
||||||
#include <dev/apic.h>
|
#include <dev/apic.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#define __ASM__
|
#define __ASM__
|
||||||
#include <kernel/gdt.h>
|
#include <kernel/gdt.h>
|
||||||
#include <kernel/idt.h>
|
#include <kernel/idt.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/gdt.h>
|
#include <kernel/gdt.h>
|
||||||
#include <kernel/common.h>
|
#include <kernel/common.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/idt.h>
|
#include <kernel/idt.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <kernel/common.h>
|
#include <kernel/common.h>
|
||||||
#include <kernel/acpi.h>
|
#include <kernel/acpi.h>
|
||||||
#include <kernel/gdt.h>
|
#include <kernel/gdt.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
.global rdmsr
|
.global rdmsr
|
||||||
rdmsr:
|
rdmsr:
|
||||||
pushq %rbp
|
pushq %rbp
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
#include <stdarg.h>
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <stdbool.h>
|
#include <kernel/common.h>
|
||||||
|
|
||||||
#include <dev/serial.h>
|
#include <dev/serial.h>
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
static inline void printf_out(char c)
|
static inline void printf_out(char c)
|
||||||
{
|
{
|
||||||
serial_write(c);
|
serial_write(c);
|
||||||
|
|
@ -74,7 +75,7 @@ int printf(const char *restrict fmt, ...)
|
||||||
break;
|
break;
|
||||||
case 'x':
|
case 'x':
|
||||||
i = va_arg(args, int);
|
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 sel = ((sizeof(i) * 2) - j - 1) * 4;
|
||||||
int num = (i >> sel) & 0xF;
|
int num = (i >> sel) & 0xF;
|
||||||
printf_out(convert[num]);
|
printf_out(convert[num]);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void *memcpy(void *dest, const void *src, size_t num)
|
void *memcpy(void *dest, const void *src, size_t num)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue