Memset the BSS explicitly
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 25 Nov 2015 17:05:40 +0000 (12:05 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Nov 2015 21:05:31 +0000 (16:05 -0500)
commitcc0e5fcb2c7dfedea6fb3117ffbebdb47b73d982
tree0a308f93a998e4b9fb71b91d69cdc9218ca7f683
parent0878a40090ea4208a8bb6528dfe934f80f08e72a
Memset the BSS explicitly

Previously, we were assuming that everything from the end of .data to the
end of the kernel image was .bss.  That is definitely not the case, which
becomes apparent if you try to add an attribute for another section and
then you wonder why said section is zeroed at runtime (but not in the
object!).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/riscv/kernel.ld
kern/arch/x86/kernel64.ld
kern/src/init.c