1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/sys/i386
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 This is a follow-up, cleaning-up commit about recent changes involving 2007-09-11 22:54:09 +00:00
bios Tweak the probe/attach order of devices on the x86 nexus devices. 2007-03-20 20:21:44 +00:00
compile
conf Add a driver for the on-die digital thermal sensor found on Intel Core 2007-08-15 19:26:03 +00:00
cpufreq Use bus_dma to get a page in the first 4 GB. Since the physical address 2007-06-17 07:18:23 +00:00
i386 Fix an undefined symbol that as/ld neglected to flag as a problem. It 2007-09-17 21:55:28 +00:00
ibcs2 Remove pad argument from ftruncate wrapper. Oops. 2007-07-05 05:32:44 +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 Fix a kernel panic due to a NULL pointer access on pc98. 2007-09-01 12:18:28 +00:00
linux - Move all of the PS_ flags into either p_flag or td_flags. 2007-09-17 05:31:39 +00:00
pci Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
svr4
xbox - Define data of struct gfb_font a const as it's only used to supply font 2007-06-16 21:31:53 +00:00
Makefile Update entries for building tags. 2007-05-13 18:21:54 +00:00