summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/mmu.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-12-13 23:35:21 +0100
committercinap_lenrek <cinap_lenrek@centraldogma>2011-12-13 23:35:21 +0100
commita03d9a7985c7a2a6e72c997921c6fa4e73cddaca (patch)
treef903fd9980662d25e4c7121fb91973ef707079b0 /sys/src/9/pc/mmu.c
parent4b8eb68f8d4fec6e49d03f1aceea68df0543aeeb (diff)
kernel: more alloc stuff
Diffstat (limited to 'sys/src/9/pc/mmu.c')
-rw-r--r--sys/src/9/pc/mmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/9/pc/mmu.c b/sys/src/9/pc/mmu.c
index 52b0ef563..93dd86f85 100644
--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -87,10 +87,9 @@ mmuinit(void)
memglobal();
m->pdb[PDX(VPT)] = PADDR(m->pdb)|PTEWRITE|PTEVALID;
- m->tss = malloc(sizeof(Tss));
+ m->tss = mallocz(sizeof(Tss), 1);
if(m->tss == nil)
panic("mmuinit: no memory for Tss");
- memset(m->tss, 0, sizeof(Tss));
m->tss->iomap = 0xDFFF<<16;
/*