Commit Graph

6041 Commits

Author SHA1 Message Date
fvdl 60ae17c7ae Fix signed/unsigned warnings. 2003-08-31 22:40:13 +00:00
fvdl 06298770b0 Add another -DBOOT_ELF64 for amd64. 2003-08-30 20:38:58 +00:00
fvdl ee4b42342e Add -DBOOT_ELF64 for amd64. 2003-08-30 18:25:07 +00:00
fvdl 8ea680bb14 Add -m elf_i386 (for amd64) to LD. 2003-08-30 15:24:41 +00:00
fvdl e8b1f4f135 Add -m elf_i386 to ${LD}, not ${LDFLAGS}, since bsd.lib.mk doesn't
include ${LDFLAGS} when using ld -x on an object file.

XXX what's the point of these ld -x rules anyway?
2003-08-30 15:15:01 +00:00
dsl 677dd78600 Placate people who insist on using non-standard disk layouts by adding
a valid MBR entry for partition 3 (covering the first 15 sectors) into the
end of the partition boot code.
2003-08-30 13:33:55 +00:00
tron aae64118ef Add missing blank line.
Don't treat pointers as boolean values.
2003-08-28 10:58:37 +00:00
jdolecek 98c6c56281 add commented out entries for skc/sk SysKonnect SK9821 driver 2003-08-26 21:12:48 +00:00
tron 57c82d6312 Add support for i865G integrated graphics support to agp(4). Patches
contributed by Michael D. Allen in PR port-i386/22600.
2003-08-26 17:33:22 +00:00
tron c8232f0d0f Protect inclusion of "opt_vm86.h" with "#ifdef _KERNEL_OPT" as appropriate. 2003-08-25 13:11:30 +00:00
drochner 8085017e31 fix _UC_MACHINE_SP() for the vm86 case: we have to add the SS offset 2003-08-25 09:20:25 +00:00
chs 939df36e55 add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default.  the changes
fall into two basic catagories:

 - pmap and trap-handler changes.  these are all MD:
   = alpha: we already track per-page execute permission with the (software)
	PG_EXEC bit, so just have the trap handler pay attention to it.
   = i386: use a new GDT segment for %cs for processes that have no
	executable mappings above a certain threshold (currently the
	bottom of the stack).  track per-page execute permission with
	the last unused PTE bit.
   = powerpc/ibm4xx: just use the hardware exec bit.
   = powerpc/oea: we already track per-page exec bits, but the hardware only
	implements non-exec mappings at the segment level.  so track the
	number of executable mappings in each segment and turn on the no-exec
	segment bit iff the count is 0.  adjust the trap handler to deal.
   = sparc (sun4m): fix our use of the hardware protection bits.
	fix the trap handler to recognize text faults.
   = sparc64: split the existing unified TSB into data and instruction TSBs,
	and only load TTEs into the appropriate TSB(s) for the permissions.
	fix the trap handler to check for execute permission.
   = not yet implemented: amd64, hppa, sh5

 - changes in all the emulations that put a signal trampoline on the stack.
   instead, we now put the trampoline into a uvm_aobj and map that into
   the process separately.

originally from openbsd, adapted for netbsd by me.
2003-08-24 17:52:28 +00:00
itojun 96467c96c7 add udav* 2003-08-22 05:14:00 +00:00
itojun 4440262659 create /dev/crypto 2003-08-22 05:06:22 +00:00
fvdl c43b35423e Pass pointers to frames from assembly, do not use the 'frame on stack
as argument passed by value' trick, as gcc 3.3.x makes (valid) assumptions
about the stack that will not be true. Costs 2 instructions per trap/syscall
on i386, 4 per interrupt for MP. One instruction per trap/syscall on amd64,
2 per interrupt for MP. I expect gcc 3.3.1 to make up for this by better
optimization (it'd better..)

While here, make amd64 compile again by using subr_mbr_disk.c
2003-08-20 21:48:35 +00:00
dsl fc94061686 Further fallout from making 'path' arg to 'ufs_open' 'constchar *'.
There may be fallout in other builds....
2003-08-18 15:47:41 +00:00
kochi 35312b5efa make shutdown error messages clearer (idea from Christoph Egger) 2003-08-17 14:23:16 +00:00
kochi 1cc19c34e0 Try shutdown with ACPI only when ACPI is enabled.
Patch from Masanori Kanaoka (with a little modification by me).
2003-08-17 14:15:43 +00:00
yamt e6483a7858 - leave a compiler which register is used for an asm argument.
- use correct asm constraints.
- eliminate usage of dummy variables.
2003-08-13 12:40:31 +00:00
yamt fd72624430 use correct asm operand indexes.
(previously 'GLptr' was used as mask.)
this long standing bug seems to be uncovered by
my previous change(rev.1.2) on some machines.

PR/22457 from Matthias Scheler, and tested by him.
2003-08-13 12:38:35 +00:00
dsl 744ee27288 Try looking RF_PROTECTED_SECTORS further down the partition if /boot
cannot be found.
Lets the system boot directly from a rad set.
2003-08-12 10:03:03 +00:00
fvdl 8c1a2eef97 Fix deadlock issue. Slight variation on patch by Stephan Uphoff. 2003-08-11 21:15:50 +00:00
drochner 657c8bd72c fix a memory deallocation botch in the realloc-ldt case,
plus some cosmetics
from Stephen Ma per PR port-i386/19724
2003-08-11 17:26:24 +00:00
drochner 6fb41457ab arrgh - KERNBASE_LOCORE! 2003-08-11 16:56:46 +00:00
drochner e8d0979bed Fix stack location for VM86 processes in the !sigaltstack case.
I doubt it makes much sense to use the VM's stack for this, but the
old code was doubtless wrong because it potentially overwrote random
user memory.
(It might be a good idea to use the process' pre-vm86()-call stack,
but atm the infrastructure for this is missing.)
2003-08-11 14:09:18 +00:00
atatat 3e5ef14f22 Make sure to wrap include opt_foo.h in _KERNEL_OPT. 2003-08-11 13:20:39 +00:00
dsl 221f1dff47 Some systems (esp. those with a Promise IDE controller card) seem to
destroy %dl (drive number) across the 'disk reset' command.
Preserve %dl across that call and all registers across the disk reads.
Reorder the code to remove some long conditional jumps to save space.
2003-08-09 20:57:45 +00:00
yamt b1eb92cb46 in ACPI_ACQUIRE_GLOBAL_LOCK,
don't assume that the reserved bits of the global lock are all zero.
it's actually needed for, at least, IBM Thinkpad X21 (2662-64J).
2003-08-09 17:35:43 +00:00
martin a26ce66da3 KERNBASE -> KERNBASE_LOCORE (make it compile again) 2003-08-09 08:58:50 +00:00
christos c23ca09f5a use KERNBASE_LOCORE 2003-08-08 20:14:06 +00:00
christos bbb5cbabcf cleanup the mess with KERNBASE and KERNBASE_LOCORE. 2003-08-08 20:13:04 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
soren b22ef904f5 Enable ahd(4) by default. There are some problems with higher speeds /
packetized mode, but those can be disabled in the Adaptec BIOS setup.
2003-08-07 12:06:15 +00:00
bouyer 7c840df334 Add esiop at pci to GENERIC which already have siop at pci.
esiop has been tested enouth now.
esiop not added to INSTALL kernels because of possible space constraint.
siop should be able to drive all adapters supported by esiop.
2003-08-06 12:32:03 +00:00
dsl e33c0fa9eb Dont need jmpl, ljmp or jmp is fine. 2003-08-05 15:14:49 +00:00
kanaoka c5cef9cc94 - Use local variable instead of sc_Arg in softc.
- Use ACPI_ALLOCATE_BUFFER/AcpiOsFree combination instead of sc_Ret in softc.

   Pointed out by kochi.
2003-08-05 14:24:45 +00:00
dsl 0be64684b7 Some bios manage to load the mbr code to 7c0:0 (instead of 0:7c00) especially
when loading from CDROM.  Change so we don't care what %cs is.
Adjust code layout so that anyone who feels so inclinded can use this for
the mbr code.  Note that mbr slot 0 overlays a data area that must be zero
when this is read from the pbr.
2003-08-05 13:41:52 +00:00
drochner a505528166 fix the last proc->lwp transition glitch 2003-08-04 18:43:38 +00:00
mrg 2c28bbc2b3 avoid a gcc3.3 warning 2003-08-01 13:20:35 +00:00
mrg 3b1578f961 add another cast to appease gcc3.3 2003-07-28 10:28:30 +00:00
itojun 3f14c71f75 reserve cdev major # for PF. ok'ed by technical-exec 2003-07-27 14:17:57 +00:00
mrg 62260183e7 some casts to appease gcc3.3 2003-07-27 14:14:44 +00:00
mrg fcd3befc1c labels needs statements 2003-07-27 07:09:17 +00:00
mrg 3cfc71fc33 rewrite an undefined assignment 2003-07-27 07:04:46 +00:00
mrg fcbce53483 #undef takes just a name, no params 2003-07-27 07:02:18 +00:00
thorpej 063033a023 Since everyone uses clock_subr.c (or should, if they don't currently),
list it in conf/files instead of in every port's files.*.
2003-07-27 01:17:37 +00:00
dsl 3e0a1a7085 No longer build biosboot*.sym and installboot. 2003-07-26 08:45:12 +00:00
dsl a2401126fe Report actual $MACHINE (so it will be amd64, not i386)
and filesystem type (could be useful)
in primary bootstrap banner message.
2003-07-25 21:16:01 +00:00
yamt f5721758ca move pv_head and page attributes into md part of vm_page structure
instead of having separate arrays for them.
(i.e. use __HAVE_VM_PAGE_MD instead of __HAVE_PMAP_PHYSSEG.)
2003-07-22 13:55:31 +00:00
hannken bbf46d4085 Add support for i855 agp. From FreeBSD.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-07-20 18:56:32 +00:00