Skip to content

Commit 977c0ba

Browse files
committed
remove 'runui' makefile command
1 parent d65aba8 commit 977c0ba

File tree

2 files changed

+14
-25
lines changed

2 files changed

+14
-25
lines changed

kernel/Makefile

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# make justrun Run the last build
55
# make runnet Build and run in QEMU with nic
66
# make justrunnet Run the last build with nic
7-
# make runui Build and run in QEMU with gui
8-
# make justrunui Run the last build with gui
97
# make runtest Build and run in QEMU with specified program
108
# make justruntest Run the last build with specified program
119
# make doc Generate docs
@@ -50,7 +48,6 @@ kernel_img := $(build_path)/kernel.img
5048
bootimage := $(build_path)/bootimage.bin
5149
bootloader_dir = ../bootloader
5250
bootloader := $(bootloader_dir)/target/$(target)/$(mode)/rcore-bootloader
53-
bbl_path := $(PWD)/../riscv-pk
5451
user_dir := ../user
5552

5653

@@ -126,13 +123,12 @@ qemu_opts += \
126123
-kernel ../tools/opensbi/virt_rv32.elf \
127124
-device loader,addr=0x80400000,file=$(kernel_img) \
128125
-drive file=$(USER_QCOW2),format=qcow2,id=sfs \
129-
-device virtio-blk-device,drive=sfs
126+
-device virtio-blk-device,drive=sfs \
127+
-device virtio-gpu-device \
128+
-device virtio-mouse-device
130129
qemu_net_opts += \
131130
-netdev type=tap,id=net0,script=no,downscript=no \
132131
-device virtio-net-device,netdev=net0
133-
qemu_ui_opts += \
134-
-device virtio-gpu-device \
135-
-device virtio-mouse-device
136132

137133
else ifeq ($(arch), riscv64)
138134
ifeq ($(board), u540)
@@ -148,14 +144,13 @@ qemu_opts += \
148144
-kernel ../tools/opensbi/virt_rv64.elf \
149145
-device loader,addr=0x80200000,file=$(kernel_img) \
150146
-drive file=$(USER_QCOW2),format=qcow2,id=sfs \
151-
-device virtio-blk-device,drive=sfs
147+
-device virtio-blk-device,drive=sfs \
148+
-device virtio-gpu-device \
149+
-device virtio-mouse-device
152150
endif
153151
qemu_net_opts += \
154152
-netdev type=tap,id=net0,script=no,downscript=no \
155153
-device virtio-net-device,netdev=net0
156-
qemu_ui_opts += \
157-
-device virtio-gpu-device \
158-
-device virtio-mouse-device
159154

160155
else ifeq ($(arch), aarch64)
161156
qemu_opts += \
@@ -233,10 +228,7 @@ prefix := riscv64-unknown-elf-
233228
else ifeq ($(arch), mipsel)
234229
prefix ?= mipsel-linux-musln32-
235230
else ifeq ($(arch), aarch64)
236-
prefix ?= aarch64-none-elf-
237-
ifeq (,$(shell which $(prefix)ld))
238-
prefix := aarch64-elf-
239-
endif
231+
prefix ?= aarch64-linux-musl-
240232
endif
241233

242234
gdb := $(prefix)gdb
@@ -246,7 +238,7 @@ strip := cargo strip --
246238
dtc := dtc
247239
hostcc := gcc
248240

249-
.PHONY: all clean build asm doc debug kernel sfsimg install run justrun runnet justrunnet runui justrunui runtest justruntest
241+
.PHONY: all clean build asm doc debug kernel sfsimg install run justrun runnet justrunnet runtest justruntest
250242

251243
all: kernel
252244

@@ -260,7 +252,6 @@ doc:
260252

261253
run: build justrun
262254
runnet: build justrunnet
263-
runui: build justrunui
264255
runtest: build justruntest
265256

266257
justrun:
@@ -269,9 +260,6 @@ justrun:
269260
justrunnet: build
270261
@sudo qemu-system-$(arch) $(qemu_opts) $(qemu_net_opts)
271262

272-
justrunui: build
273-
@qemu-system-$(arch) $(qemu_opts) $(qemu_ui_opts)
274-
275263
justruntest: build
276264
@qemu-system-$(arch) $(filter-out -serial mon:stdio, $(qemu_opts)) --append $(init) -serial file:../tests/stdout -monitor null
277265

kernel/src/drivers/gpu/virtio_gpu.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,12 @@ fn setup_framebuffer(driver: &mut VirtIOGpu) {
266266
let frame_buffer = unsafe {
267267
HEAP_ALLOCATOR.alloc_zeroed(Layout::from_size_align(size as usize, PAGE_SIZE).unwrap())
268268
} as usize;
269-
mandelbrot(
270-
driver.rect.width,
271-
driver.rect.height,
272-
frame_buffer as *mut u32,
273-
);
269+
// test framebuffer
270+
// mandelbrot(
271+
// driver.rect.width,
272+
// driver.rect.height,
273+
// frame_buffer as *mut u32,
274+
// );
274275
driver.frame_buffer = frame_buffer;
275276
let request_resource_attach_backing = unsafe {
276277
&mut *(driver.queue_buffer[VIRTIO_BUFFER_TRANSMIT] as *mut VirtIOGpuResourceAttachBacking)

0 commit comments

Comments
 (0)