opnsense-src/sys/amd64/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
..
amd64_mem.c Move the definition of M_MEMDESC to a non-optional file. This allows 2004-08-07 06:21:37 +00:00
apic_vector.S Newer versions of gcc don't support treating structures passed by value 2006-12-17 06:48:40 +00:00
atomic.c Use __FBSDID(). 2003-07-25 21:19:19 +00:00
autoconf.c Create nexus in configure_first() instead of in configure(). This 2005-05-29 23:44:22 +00:00
bios.c Make the facility for recognizing BIOS-signatures more general 2005-07-21 09:48:37 +00:00
bpf_jit_machdep.c - Explicitly validate an empty filter to match bpf_filter() comment[1]. 2006-01-03 20:26:03 +00:00
bpf_jit_machdep.h Fix ZERO_EDX() macro from the previous commit. It was emitting 2005-12-06 20:11:07 +00:00
busdma_machdep.c Initialize lastaddr to zero to make gcc4.2 happy. 2007-06-17 04:21:58 +00:00
cpu_switch.S Assign sizes to assembly language support functions. 2007-08-22 05:06:14 +00:00
db_disasm.c Various fixes: 2006-11-13 21:14:54 +00:00
db_interface.c Begin all license/copyright comments with /*- 2005-01-05 20:17:21 +00:00
db_trace.c Add support for 8 byte hardware watches in long mode. Kernel hardware 2006-11-17 20:27:01 +00:00
dump_machdep.c Introduce minidumps. Full physical memory crash dumps are still available 2006-04-21 04:24:50 +00:00
elf_machdep.c Allow FreeBSD's native ELF image activators to execute shared libraries the 2007-05-22 02:22:58 +00:00
exception.S Fix a panic when rebooting a SMP machine, when option STOP_NMI is used, 2006-12-23 03:30:50 +00:00
fpu.c MFi386: 2006-06-19 22:36:01 +00:00
gdb_machdep.c Sync with i386: Map exceptions to signals in gdb_cpu_signal() so 2006-04-04 03:00:20 +00:00
genassym.c Fix an undefined symbol that as/ld neglected to flag as a problem. It 2007-09-17 21:55:28 +00:00
identcpu.c MFi386: PDCM, remove pointless message 2007-05-30 14:23:26 +00:00
in_cksum.c Begin all license/copyright comments with /*- 2005-01-05 20:17:21 +00:00
initcpu.c Add variable cpu_mxcsr_mask to save valid bits of mxcsr register. 2006-06-19 22:59:28 +00:00
intr_machdep.c Rework the PCPU_* (MD) interface: 2007-06-04 21:38:48 +00:00
io.c Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
io_apic.c Move a warning under bootverbose as no machines that trigger it have ended 2007-06-05 18:57:48 +00:00
legacy.c Tweak the probe/attach order of devices on the x86 nexus devices. 2007-03-20 20:21:44 +00:00
local_apic.c This is a follow-up, cleaning-up commit about recent changes involving 2007-09-11 22:54:09 +00:00
locore.S Have hammer_time() return the proc0 stack location, and have locore 2003-05-31 06:54:29 +00:00
machdep.c Backout experimental adaptive-spin umtx code. 2007-06-06 07:35:08 +00:00
mem.c Move the definition of M_MEMDESC to a non-optional file. This allows 2004-08-07 06:21:37 +00:00
minidump_machdep.c Use a different bitmask for superpages' base address so that it 2006-12-05 11:31:33 +00:00
mp_machdep.c Move mp_topology() from apic_init(i386) and apic_setup_local(amd64) to 2007-08-02 21:17:58 +00:00
mp_watchdog.c Commit 11/14 of sched_lock decomposition. 2007-06-04 23:56:33 +00:00
mpboot.S Initial PG_NX support (no-execute page bit) 2004-06-08 01:02:52 +00:00
mptable.c Handle CPUs with APIC IDs higher than 32 (at least one IBM server uses 2007-05-08 22:01:04 +00:00
mptable_pci.c Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
msi.c Minor fixes and tweaks to the x86 interrupt code: 2007-05-08 21:29:14 +00:00
nexus.c Minor fixes and tweaks to the x86 interrupt code: 2007-05-08 21:29:14 +00:00
pmap.c In general, when we map a page into the kernel's address space, we no 2007-08-21 04:59:34 +00:00
prof_machdep.c Add an interface for drivers to be notified of changes to CPU frequency. 2007-03-26 18:03:29 +00:00
sigtramp.S Commit MD parts of a loosely functional AMD64 port. This is based on 2003-05-01 01:05:25 +00:00
support.S Assign sizes to assembly language support functions. 2007-08-22 05:06:14 +00:00
sys_machdep.c Validate if the value written into {FS,GS}.base is a canonical 2005-07-10 23:31:11 +00:00
trap.c If the trap number stored in the trapframe is corrupted into a negative 2007-07-26 15:32:55 +00:00
tsc.c Despite several examples in the kernel, the third argument of 2007-06-04 18:25:08 +00:00
uio_machdep.c Begin all license/copyright comments with /*- 2005-01-05 20:17:21 +00:00
uma_machdep.c It has been observed on the mailing lists that the different categories 2007-09-15 18:47:02 +00:00
vm_machdep.c - Change comments and asserts to reflect the removal of the global 2007-06-04 23:57:32 +00:00