Get rid of the silly `.byte's.
This commit is contained in:
parent
229a077003
commit
a493139d39
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: locore.s,v 1.110 1995/02/05 01:41:33 mycroft Exp $ */
|
/* $NetBSD: locore.s,v 1.111 1995/02/05 13:13:42 mycroft Exp $ */
|
||||||
|
|
||||||
#undef DIAGNOSTIC
|
#undef DIAGNOSTIC
|
||||||
#define DIAGNOSTIC
|
#define DIAGNOSTIC
|
||||||
|
@ -313,14 +313,14 @@ is486: movl $CPU_486,_cpu-KERNBASE
|
||||||
|
|
||||||
try586: /* Use the `cpuid' instruction. */
|
try586: /* Use the `cpuid' instruction. */
|
||||||
xorl %eax,%eax
|
xorl %eax,%eax
|
||||||
.byte 0x0f,0xa2 # cpuid 0
|
cpuid
|
||||||
movl %ebx,_cpu_vendor-KERNBASE # store vendor string
|
movl %ebx,_cpu_vendor-KERNBASE # store vendor string
|
||||||
movl %edx,_cpu_vendor-KERNBASE+4
|
movl %edx,_cpu_vendor-KERNBASE+4
|
||||||
movl %ecx,_cpu_vendor-KERNBASE+8
|
movl %ecx,_cpu_vendor-KERNBASE+8
|
||||||
movb $0,_cpu_vendor-KERNBASE+12
|
movb $0,_cpu_vendor-KERNBASE+12
|
||||||
|
|
||||||
movl $1,%eax
|
movl $1,%eax
|
||||||
.byte 0x0f,0xa2 # cpuid 1
|
cpuid
|
||||||
rorl $8,%eax # extract family type
|
rorl $8,%eax # extract family type
|
||||||
andl $15,%eax
|
andl $15,%eax
|
||||||
cmpl $5,%eax
|
cmpl $5,%eax
|
||||||
|
@ -1880,12 +1880,10 @@ IDTVEC(dbg)
|
||||||
#endif /* BDB */
|
#endif /* BDB */
|
||||||
subl $4,%esp
|
subl $4,%esp
|
||||||
pushl %eax
|
pushl %eax
|
||||||
/* movl %dr6,%eax # XXX stupid assembler! */
|
movl %dr6,%eax
|
||||||
.byte 0x0f, 0x21, 0xf0
|
|
||||||
movl %eax,4(%esp)
|
movl %eax,4(%esp)
|
||||||
andb $~15,%al
|
andb $~0xf,%al
|
||||||
/* movl %eax,%dr6 # XXX stupid assembler! */
|
movl %eax,%dr6
|
||||||
.byte 0x0f, 0x23, 0xf0
|
|
||||||
popl %eax
|
popl %eax
|
||||||
BPTTRAP(T_TRCTRAP)
|
BPTTRAP(T_TRCTRAP)
|
||||||
IDTVEC(nmi)
|
IDTVEC(nmi)
|
||||||
|
|
Loading…
Reference in New Issue