This commit is contained in:
parent
d9860e89a7
commit
1d06388bea
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
|
||||
with:
|
||||
submodules: true
|
||||
- name: Download Rust
|
||||
run: |
|
||||
curl -O ${{ vars.RUST_URL }}
|
||||
unzip compiler.zip
|
||||
- name: test
|
||||
run: ls
|
||||
- name: Build
|
||||
run: . ~/.bashrc && ./build.py
|
||||
- name: Install cargo-deny
|
||||
|
|
|
@ -5,6 +5,12 @@ _start:
|
|||
mov $stack, %rsp
|
||||
call main
|
||||
|
||||
.global syscall
|
||||
syscall:
|
||||
mov %rcx, %r10
|
||||
syscall
|
||||
ret
|
||||
|
||||
.section .bss
|
||||
.align 16
|
||||
.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
|
||||
OFILES:=$(patsubst %.c, %.o, $(CFILES))
|
||||
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)
|
||||
llvm-ar rcD $@ $^
|
||||
|
|
Loading…
Add table
Reference in a new issue