Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 14:07:55 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28738 for review
Message-ID:  <200304102107.h3AL7ttG021799@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28738

Change 28738 by peter@peter_daintree on 2003/04/10 14:07:23

	Update for aligned_tss changes. (moved declaration back to tss.h so
	that genassym and swtch.s can see it).
	Dont truncate any %cr0 upper bits in cpu_setregs() (not that any
	exist)

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#63 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#63 (text+ko) ====

@@ -507,7 +507,7 @@
 void
 cpu_setregs(void)
 {
-	unsigned int cr0;
+	register_t cr0;
 
 	cr0 = rcr0();
 	cr0 |= CR0_NE;			/* Done by npxinit() */
@@ -553,15 +553,7 @@
 
 static char dblfault_stack[PAGE_SIZE];
 
-/*
- * Nasty hack to arrange internal longword alignment.
- * What were they thinking??
- */
-static struct {
-	u_int32_t pad;
-	struct x86_64tss tss  __packed;
-} common_tss;
-
+struct aligned_tss common_tss;
 
 /* software prototypes -- in more palatable form */
 struct soft_segment_descriptor gdt_segs[] = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304102107.h3AL7ttG021799>