From: acevest Date: Fri, 5 Nov 2021 13:37:03 +0000 (+0800) Subject: add kernel.sym X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/readme1st.txt?a=commitdiff_plain;h=8862c5fde13519815bfc1e82fefe0eff306b87ad;p=kernel.git add kernel.sym --- diff --git a/.bochsrc b/.bochsrc index dd16352..bf4a759 100644 --- a/.bochsrc +++ b/.bochsrc @@ -671,7 +671,7 @@ private_colormap: enabled=0 # The optional parameter 'write_protected' can be used to control the media # write protect switch. By default it is turned off. #======================================================================= -floppya: 1_44=/dev/fd0, status=inserted +#floppya: 1_44=/dev/fd0, status=inserted #floppya: image=../1.44, status=inserted #floppya: 1_44=/dev/fd0H1440, status=inserted #floppya: 1_2=../1_2, status=inserted @@ -967,7 +967,7 @@ parport1: enabled=1, file="parport.out" # the Beep() function. The 'gui' mode forwards the beep to the related # gui methods (currently only used by the Carbon gui). #======================================================================= -speaker: enabled=1, mode=sound, volume=15 +speaker: enabled=0, mode=sound, volume=15 #======================================================================= # SB16: @@ -1255,7 +1255,7 @@ magic_break: enabled=1 # debug_symbols: file="kernel.sym" # debug_symbols: file="kernel.sym", offset=0x80000000 #======================================================================= -#debug_symbols: file="kernel.sym" +debug_symbols: file="kernel.sym" #print_timestamps: enabled=1 @@ -1308,4 +1308,3 @@ magic_break: enabled=1 #megs: 32 #megs: 16 #megs: 8 -megs: 8 diff --git a/.gitignore b/.gitignore index 1c9ce21..eeddd02 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ *.BIN *.bin *.map +*.sym *.diff *.swp bin/hello diff --git a/Makefile b/Makefile index 428b585..3a41967 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ OBJS := $(patsubst %,%.o,$(SOURCE_FILES)) ${KERNELBIN}: ${OBJS} ${LD} -m elf_i386 -M -T$(LINKSCRIPT) $(OBJS) -o $@ > $(SYSTEMMAP) + nm -a $@ > kernel.sym rm kernel/setup.c.o %.S.o: %.S ${HEADER_FILES}