freebsd-dev/sys/amd64
Peter Wemm 8bff6a112b Fix an undefined symbol that as/ld neglected to flag as a problem. It
was used in assembler code in such a way that no unresolved relocation
records were generated, so ld didn't flag the problem.   You can see
this with an 'nm' of the kernel.  There will be 'U MAXCPU' on SMP systems.

The impact of this is that the intrcount/intrnames arrays do not have
the intended amount of space reserved.  This could lead to interesting
problems due to the arrays being present in the middle of kernel code.
An overflow would be rather interesting as executable code would be used
as per-cpu incrementing interrupt counters.

This fixes it for now by exporting MAXCPU to the assembler.  A better fix
might be to define these data structures in C - they're only referenced
in the kernel from C code these days anyway.

Approved by:  re (kensmith)
2007-09-17 21:55:28 +00:00
..
acpica Handle CPUs with APIC IDs higher than 32 (at least one IBM server uses 2007-05-08 22:01:04 +00:00
amd64 Fix an undefined symbol that as/ld neglected to flag as a problem. It 2007-09-17 21:55:28 +00:00
compile Make space for compilations. 2002-07-06 02:49:07 +00:00
conf Add a driver for the on-die digital thermal sensor found on Intel Core 2007-08-15 19:26:03 +00:00
ia32 Optimize vmmeter locking. 2007-06-10 21:59:14 +00:00
include Define an END() macro for use in i386 and amd64 assembly code, akin 2007-08-22 04:26:07 +00:00
isa Currently the LO_NOPROFILE flag (which is masked on upper level code by 2007-09-14 01:12:39 +00:00
linux32 Regenerate. 2007-08-28 12:36:23 +00:00
pci Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
Makefile