Commit Graph

1533 Commits

Author SHA1 Message Date
joerg 4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
soren 7f65496e43 Blocking memory space accesses on the SIS 85C496 chipset turned out to be
a bit too heavy-handed and similar cases are unlikely to crop up again,
so simplify by eliminating pci_bus_flags().

Closes PR port-i386/20410.
2013-07-31 14:05:33 +00:00
soren e943400c80 A few "isa" files are so tightly integrated into the x86 platform code
as to not really be part of the optional isa bus autoconf machinery.

Allows configuring a kernel like so:

include "arch/amd64/conf/GENERIC"
no isa
2013-07-17 21:26:28 +00:00
rmind 666e919182 G/C PFIL_HOOKS from the kernel configs. 2013-06-30 21:38:55 +00:00
dsl 7b9edbe958 Improve the dodgy code that writes the FP regs into core dumps of 32bit apps.
(I'm not pretending it is correct yet!)
The 'struct fpreg32' (written to coredumps) is shorter than 'struct save87'
so netbsd32_process_read_fpregs() hadn't better write to the extra items.
Doing so overwrites stack in coredump_note() in core_elf32.c - I'm amazed
it doesn't cause a panic!
Also correct (I think) the code and data addresses associated with the FP
unit.
This probably wants pulling up.
2013-06-25 21:08:07 +00:00
joerg 9547cd8b38 Fix header guards. 2013-06-25 15:08:43 +00:00
uebayasi 1d446b7ac1 Split these to improve diffability. 2013-06-25 00:27:22 +00:00
uebayasi e2ff7476af Whitespace, comment, NBPG -> PAGE_SIZE. 2013-06-23 09:00:36 +00:00
uebayasi 6b5b6a9b05 Whitespace. 2013-06-23 03:16:46 +00:00
uebayasi a5c3b84db4 Use END() markers, etc. Pure ELF .symtab (size) changes. 2013-06-22 15:13:55 +00:00
uebayasi f5da20f152 A few END() markers. 2013-06-22 13:09:07 +00:00
uebayasi cd0ee31666 Use END()/IDTVEC_END() to set ELF symbol size. Set some type info too. 2013-06-22 08:48:48 +00:00
uebayasi 7e04682e69 Define IDTVEC_END(), from i386/asm.h. 2013-06-22 07:31:36 +00:00
uebayasi ded13333fe Use END() to set ELF symbol size. Set some type info too. 2013-06-22 06:57:30 +00:00
uebayasi 5cbca21c58 Use END() to set ELF symbol size. Set local data type/size too. 2013-06-22 06:23:28 +00:00
uebayasi 368c73c552 Use END() to set ELF symbol size. Set local string type/size too. 2013-06-22 05:56:32 +00:00
uebayasi 93d35b4dc9 Use END() to set ELF symbol size. 2013-06-22 05:20:57 +00:00
uebayasi ffd5ab7c8e Use END() to set ELF symbol size. 2013-06-22 02:33:44 +00:00
uebayasi f1913dfefe Add END(y) as i386/asm.h does. 2013-06-21 02:47:06 +00:00
kardel d1abea10e2 adjust soekrisgpio driver to NetBSD 2013-06-10 07:14:01 +00:00
msaitoh 6f7d4f1823 Fix compile error. PR#38480 was correctly fixed in 2009, it's ok to remove
"no options MTRR"
2013-06-06 07:11:18 +00:00
christos e46f5f0078 remove obsolete networking options 2013-06-05 23:07:59 +00:00
christos 286adf2825 declaring mtrr_funcs once should be enough. 2013-06-05 14:37:04 +00:00
christos 87abbfb647 sync drm with i386 2013-06-04 14:39:31 +00:00
kiyohara 557ed22b4e Add udsir. 2013-05-28 12:13:55 +00:00
jakllsch 8cf4682dc7 Enable sdhc* at cardbus? in amd64 GENERIC. As it is already in i386
GENERIC. sdhc(4) has had working detach support for a while now too.
2013-05-03 15:45:24 +00:00
christos 9434c99ee1 more bogus number removal 2013-04-27 22:21:12 +00:00
christos 1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
christos dc14ae835f remove confusing numeric locators where they are unused. 2013-04-27 18:19:19 +00:00
riz fdd7809702 Sync DKWEDGE options with XEN3_DOM0. 2013-04-17 00:09:04 +00:00
christos 37ddcb991e de-duplication police arrests sysctl. 2013-04-12 16:59:38 +00:00
christos caafbf4e1b add missing SSIZE_MIN 2013-04-11 00:57:34 +00:00
martin 210e95ef60 athn at pci has been successfully tested 2013-04-06 16:56:18 +00:00
taca 9b81039fcf Use printf_nolog() as i386 when print remaing bytes at crash dump to
prevent message buffer with cound down.
2013-04-02 13:28:41 +00:00
christos 8b57040752 patches for new wifi devices. 2013-03-30 02:38:58 +00:00
christos 2c1aa36c3d Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it. 2013-03-02 02:42:07 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
khorben 75c88a7f14 Added wpi(4) to the XEN3_DOM0 kernel for both amd64 and i386
Tested on a Lenovo ThinkPad T60 2007 (amd64)
2013-02-09 17:42:34 +00:00
bouyer 9c6e8a9747 Put back 32k MAXPHYS, reverting
http://mail-index.netbsd.org/source-changes/2013/01/19/msg040666.html

64k MAXPHYS breaks at last iso9660, as shown by periodic anita runs at
http://www-soc.lip6.fr/~bouyer/NetBSD-tests/xen/
2013-01-24 13:58:40 +00:00
jakllsch 754f8600b7 xbd has been able to cope with any value of MAXPHYS since
src/sys/arch/xen/xen/xbd_xenbus.c 1.56
2013-01-19 16:19:55 +00:00
christos 0ec56bf804 print the lid too. 2013-01-14 00:06:11 +00:00
chs e6346fb93b enable sparse dumps by default. 2013-01-12 16:56:11 +00:00
chs d26d978fbd rearrange the LDT entries so that (32-bit) COMPAT_10 binaries work again.
in long mode, call gates use two slots, so the first entry (a call gate)
would overlap the second one (the 32-bit user code descriptor).
2013-01-07 17:03:06 +00:00
dsl f39855d55a This is included into user-programs by signal.h, it shouldn't be
pulling in machine/fpu.h - which doesn't describe anything userspace
(directly) needs.
2013-01-02 19:40:23 +00:00
dsl ee8be9493a Move the two fields used to save some i387 state on the last fpu trap
into their own sub-structure of the pcb (from 'struct savefpu').
They only (seem) to be used in some code that generates core dumps
  for 32bit processes (code that might be broken as well!).
'struct safefpu' is now identical to 'struct fxsave64'. One (or both)
  needs extending to support AVX - might need to be dynamically sized.
Removed all the __aligned(16) except for the one in struct pcb itself.
  Only the copy used for the fsave instruction need be aligned.
2012-12-31 16:20:17 +00:00
christos b36cb96502 fix cut-n-paste. 2012-12-20 22:08:19 +00:00
dsl dd26d213b4 Remove the incorrect comment about a (now deleted) pad field added
to make __fpregs be 16-byte aligned within ucontext_t.
I doubt that has been true for years!
Since the __fpregs field isn't accessed by fxsave it doesn't matter.
There is a lot of type fubar here, at leat mark the char[] __aligned(8).
2012-12-15 22:39:04 +00:00
dsl 8c27467f9b Add the offsets and comments for the members of 'struct fxsave64.
Spilt the 'fx_unused2' field into its reserved and available halves.
The latter could be used by the kernel software (cpu won't read/write it).
Remove the __padded from 'struct fxsave64', everything is aligned.
Add a CTASSERT that the size is correct (512).
Remove the unused 'struct oldfsave'.
Everything still builds.
2012-12-15 21:50:43 +00:00
christos 48e748eb9e do like the i386 for modular. 2012-12-14 16:37:55 +00:00
riz b2bc08746f Add alc* at pci, re-sort slightly to reduce diffs from GENERIC. 2012-11-30 18:13:30 +00:00