PERFORCE change 28738 for review
Peter Wemm
peter at FreeBSD.org
Thu Apr 10 14:07:57 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28738
Change 28738 by peter at 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[] = {
More information about the p4-projects
mailing list