This commit is contained in:
parent
d9860e89a7
commit
69c7e99535
4 changed files with 14 additions and 1 deletions
1
.clang-format
Normal file
1
.clang-format
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ColumnLimit: 200
|
|
@ -12,6 +12,12 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
- name: Download Compiler
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
repository: mathieu/os-rust
|
||||||
|
- name: test
|
||||||
|
run: ls
|
||||||
- name: Build
|
- name: Build
|
||||||
run: . ~/.bashrc && ./build.py
|
run: . ~/.bashrc && ./build.py
|
||||||
- name: Install cargo-deny
|
- name: Install cargo-deny
|
||||||
|
|
|
@ -5,6 +5,12 @@ _start:
|
||||||
mov $stack, %rsp
|
mov $stack, %rsp
|
||||||
call main
|
call main
|
||||||
|
|
||||||
|
.global syscall
|
||||||
|
syscall:
|
||||||
|
mov %rcx, %r10
|
||||||
|
syscall
|
||||||
|
ret
|
||||||
|
|
||||||
.section .bss
|
.section .bss
|
||||||
.align 16
|
.align 16
|
||||||
.skip 0x10000
|
.skip 0x10000
|
||||||
|
|
|
@ -3,7 +3,7 @@ COMPONENTS:=dispatcher events executer hardware namespace parser resources table
|
||||||
CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
|
CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
|
||||||
OFILES:=$(patsubst %.c, %.o, $(CFILES))
|
OFILES:=$(patsubst %.c, %.o, $(CFILES))
|
||||||
CC:=clang
|
CC:=clang
|
||||||
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
|
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -Wall -Werror -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
|
||||||
|
|
||||||
libacpica.a: $(OFILES)
|
libacpica.a: $(OFILES)
|
||||||
llvm-ar rcD $@ $^
|
llvm-ar rcD $@ $^
|
||||||
|
|
Loading…
Add table
Reference in a new issue