Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Since we're now allocating ...
details: https://anonhg.NetBSD.org/src/rev/ef9f9063de0c
branches: sommerfeld_i386mp_1
changeset: 482574:ef9f9063de0c
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Mon Aug 19 02:15:03 2002 +0000
description:
Since we're now allocating stuff out of the gdt earlier on,
copy more of it.
diffstat:
sys/arch/i386/i386/gdt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ed02fd03a26b -r ef9f9063de0c sys/arch/i386/i386/gdt.c
--- a/sys/arch/i386/i386/gdt.c Mon Aug 19 01:32:43 2002 +0000
+++ b/sys/arch/i386/i386/gdt.c Mon Aug 19 02:15:03 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdt.c,v 1.22.2.9 2002/08/19 01:22:27 sommerfeld Exp $ */
+/* $NetBSD: gdt.c,v 1.22.2.10 2002/08/19 02:15:03 sommerfeld Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.22.2.9 2002/08/19 01:22:27 sommerfeld Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.22.2.10 2002/08/19 02:15:03 sommerfeld Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -223,7 +223,7 @@
uvm_map_pageable(kernel_map, (vaddr_t)ci->ci_gdt,
(vaddr_t)ci->ci_gdt + min_len, FALSE, FALSE);
memset(ci->ci_gdt, 0, min_len);
- memcpy(ci->ci_gdt, gdt, NGDT * sizeof(gdt[0]));
+ memcpy(ci->ci_gdt, gdt, gdt_count * sizeof(gdt[0]));
setsegment(&ci->ci_gdt[GCPU_SEL].sd, ci, sizeof(struct cpu_info)-1,
SDT_MEMRWA, SEL_KPL, 1, 1);
}
Home |
Main Index |
Thread Index |
Old Index