thorpej
0b04d28454
Mark uses of long long with /* LONGLONG */ for lint. From
...
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej
aefc208b70
asm -> __asm__, volatile -> __volatile
1997-11-05 04:19:04 +00:00
thorpej
4730a8cbec
Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
...
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
by the way it's used).
The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.) The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
thorpej
665f7d1a6e
Implement __RENAME() in <machine/cdefs.h>
1997-10-22 05:20:32 +00:00
christos
2975958ca6
fix chrtoblk declaration
1997-10-16 23:42:35 +00:00
explorer
80513cb5ae
o Make usage of /dev/random dependant on
...
pseudo-device rnd # /dev/random and in-kernel generator
in config files.
o Add declaration to all architectures.
o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
that this code is derived in part from Ted Tyso's linux code.
1997-10-13 00:46:08 +00:00
mycroft
5c8d588138
Nuke NOOBJ.
1997-10-11 08:44:42 +00:00
mycroft
acf0e569a5
Update all the tags goo, and use bsd.subdir.mk.
1997-10-11 08:42:02 +00:00
bouyer
6ab3092b11
Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
...
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
jtc
4229acf79d
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:37:20 +00:00
thorpej
dd3663cdfb
Fix a typo.
1997-10-08 23:28:01 +00:00
thorpej
3b4ad2b60e
Copyright assigned to The NetBSD Foundation.
1997-10-05 18:15:51 +00:00
christos
7f41ec0345
PR/4162: Chris Jones: make cleandir does not work properly; it does not
...
remove the object files and the .depend file in the kernel build directory.
1997-09-30 22:50:53 +00:00
mycroft
701aa39854
Oops; didn't delete two retval[] usages in setregs().
1997-09-12 09:59:53 +00:00
mycroft
16a8787248
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-11 23:01:44 +00:00
thorpej
417cce7c06
Fix typo(?) in dlmiss handler ("store" bit erronenously set). From
...
Kazuki Sakamoto <sakamoto@cec.co.jp>, PR #3583 .
1997-08-29 19:11:07 +00:00
drochner
bdb232d2b6
Don't use <lib/libsa/if_ether.h> anymore. This was a copy of the
...
old (before ARP changes) <netinet/if_ether.h>, intended for
temporary use.
1997-07-22 17:41:01 +00:00
leo
198bd713f2
Generate assym.h dependencies when making 'depend'.
1997-07-12 22:07:36 +00:00
mrg
552af779d2
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:46:19 +00:00
mrg
dc6a98e92c
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:09:23 +00:00
veego
6ab737a609
Initialize machine from MACHINE and machine_arch from MACHINE_ARCH.
1997-06-08 23:59:57 +00:00
veego
de7e49a954
Add 'char machine_arch[] = "xxx";' for the new sysctl hw.machine_arch.
1997-06-06 23:26:01 +00:00
gwr
e2a58b69f7
Add #define __VM_PMAP_HACK as a temporary measure.
1997-05-16 21:35:30 +00:00
mycroft
84bca5d679
Don't use _SUBDIRUSE outside of bsd.subdir.mk.
1997-05-07 17:28:47 +00:00
mycroft
df082e3c8d
A handle of 0 means the open failed...
1997-04-28 18:46:15 +00:00
mycroft
37cb09ba66
DTRT if OF_read() returns 0 when no data is available.
1997-04-28 18:33:57 +00:00
thorpej
2c8a12761d
Fix a pasto
1997-04-19 01:47:24 +00:00
thorpej
a53aafbf1a
...and again.
1997-04-19 01:40:08 +00:00
thorpej
28d3c2e2d3
Replay history....
1997-04-19 01:39:44 +00:00
thorpej
84c938e92f
oops, forgot to commit this yesterday - newvers.sh script for boot
...
program.
1997-04-17 20:24:17 +00:00
thorpej
d76ea6e415
STRIP -> STRIPFLAG
1997-04-17 07:46:24 +00:00
thorpej
28b6ad9af8
- Pull in new ofwmagic.S and soft_spl.c files
...
- firepowerbugs -> firmworksbugs
1997-04-16 23:27:05 +00:00
thorpej
61da87f25a
- Use genassym.sh to facilitate cross-compiling.
...
- Various clean/catch-up.
1997-04-16 23:26:06 +00:00
thorpej
de6c03ee6c
Update for current PowerPC code, some from Wolfgang.
1997-04-16 23:14:24 +00:00
thorpej
87bbb0ba3b
Always define MACHINE_NONCONTIG.
1997-04-16 23:03:52 +00:00
thorpej
54cc37063b
Nuke __BROKEN_INDIRECT_CONFIG
1997-04-16 23:03:16 +00:00
thorpej
49fd2f3af7
Use new va-ppc.h
1997-04-16 23:02:34 +00:00
thorpej
d3112d23d1
Garbage collect stuff now hidden my machine_vec.
1997-04-16 23:02:00 +00:00
thorpej
afd0c2db7e
Yow, "what happened"? Anyhow, correct apparerent CVS botch, and fix
...
RCS ID.
1997-04-16 23:00:53 +00:00
thorpej
974b5a78b0
Minimal profiling definitions - profiling doens't yet work.
1997-04-16 22:58:46 +00:00
thorpej
2849b893e3
s/dummy/md_proc/
1997-04-16 22:57:48 +00:00
thorpej
cd3712c5bf
Update ipkdb's register handling, from Wolfgang Solfrank.
1997-04-16 22:57:06 +00:00
thorpej
805da2b95a
Don't define two partition types for NetBSD - just use the standard 0xa5.
...
(Eww, DOS MBR)
1997-04-16 22:55:10 +00:00
thorpej
ab473e98d6
Definitions for machine_vec interface, from Wolfgang Solfrank.
1997-04-16 22:54:21 +00:00
thorpej
2895975dfc
Update for Elf.
1997-04-16 22:52:50 +00:00
thorpej
88e2d78a5c
Update to varargs/stdarg implementation; conform to the SVR4 calling
...
convention.
1997-04-16 22:51:22 +00:00
thorpej
d78ae3859a
- Add an option (TRAP_PANICWAIT) that causes trap() to prompt for a keypress
...
before calling panic().
- Add const poisioning where appropriate.
1997-04-16 22:49:49 +00:00
thorpej
144eb2ce5b
- Fixed reversed arguments to an asm() (from Andrew Cagney)
...
- Round memory segments in a saner way (from Charles Hannum)
1997-04-16 22:45:26 +00:00
thorpej
a9c6f67829
- Symbol cleanup, a'la locore.S
...
- Fix a 16-bit botch when disabling MMU
- Properly align save areas and temporary stacks.
1997-04-16 22:43:46 +00:00
thorpej
fdb155145e
Fix some bogons in boot path parsing code.
1997-04-16 22:41:34 +00:00
thorpej
5c7a06f070
Several changes from Wolfgang Solfrank, Charles Hannum, and myself:
...
- Make setregs() conform to the PowerPC SVR4 ABI, plus one NetBSD
extention (for ps_strings).
- machine == powerpc, not PowerPC.
- Set up machine vector for OpenFirmware.
- Nuke the msgbuf for now; it's not mapped correctly.
- Add missing casts in some asm() directives.
- Enable PSL_RI earlier, and do *not* disable it in fake_spl(), since it
is needed for page faults.
- Some general cleanup.
1997-04-16 22:38:13 +00:00
thorpej
fac39bcc01
Several changes from Wolfgang Solfrank, Charles Hannum, and myself:
...
- Clean up symbol goop - use macros in asm.h where appropriate.
- Add, correct, and generally clean up comments.
- Properly align save areas and temporary stacks.
- Fix the 603 tlb reload code.
- Fix several bogus constants and modifiers.
- Some stylistic changes.
1997-04-16 22:18:55 +00:00
thorpej
d2798d376c
Update to ipkdb register handling, from Wolfgang Solfrank.
1997-04-16 22:12:42 +00:00
thorpej
d667b1f2d0
Add hooks for berkeley packet filter.
1997-04-16 22:11:15 +00:00
thorpej
9970f1bf3c
Adjust for new machine_vec-based interrupt, from Wolfgang Solfrank.
1997-04-16 22:10:39 +00:00
thorpej
6708f357b5
RCS ID and #includes cleanup.
1997-04-16 22:09:41 +00:00
thorpej
fd3f618510
"Simulated" software-spl handling, for use on OpenFirmware systems.
...
These are for a generalized "machine vector" designed to hide
differences between various PowerPC systems.
From Wolfgang Solfrank <ws@tools.de>
1997-04-16 21:20:35 +00:00
thorpej
a6cf9568cc
Special Magick note section interpreted by OpenFirmware to set various
...
parameters. Shared by kernel and OpenFirmware boot program.
1997-04-16 21:19:00 +00:00
thorpej
ac9333ee5b
Use genassym.sh to facilitate cross-compiling.
1997-04-16 21:16:25 +00:00
thorpej
273398acfa
Machine-type tags used to communicate the type of system we're running
...
on to the kernel. The boot program passes a boot args string plus
additional information like so:
/pci/scsi@3/disk@0,0:1/netbsd -s<NUL><esym><tag>
The post-<NUL> values are:
<esym> end of the kernel symbol table (32-bits)
<tag> machine type tag (32-bits)
1997-04-16 21:12:29 +00:00
thorpej
ae9514e076
Definitions for IEEE floating point for NetBSD/powerpc.
1997-04-16 21:07:11 +00:00
thorpej
36a0d58408
Machine-dependent definitions for Elf on NetBSD/powerpc.
1997-04-16 21:06:11 +00:00
thorpej
ec64b8f26a
Garbage-collect
1997-04-16 20:30:16 +00:00
thorpej
1bd80ab675
New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
...
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
1997-04-16 20:28:59 +00:00
thorpej
7a6a8eb391
Don't allocate mclrefcnt[]; it's dead and gone.
1997-03-27 21:01:48 +00:00
gwr
37b247edde
Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/
1997-03-26 22:42:13 +00:00
gwr
71e43d14ab
Move findroot/setroot stuff from configure() to cpu_rootconf().
1997-03-26 22:38:40 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
mycroft
f868dff8d3
Define the `cleankernel' target consistently with other ports.
1997-03-14 23:27:29 +00:00
fvdl
115b6d92fa
Define ALIGNED_POINTER
1997-02-24 23:16:53 +00:00
perry
19d153fc48
Nuke some options GENERIC residue.
1997-02-04 04:57:10 +00:00
perry
0b3a46d6b3
Nuke some GENERIC residue.
1997-02-04 04:31:55 +00:00
thorpej
739f23a219
This file is obsolete; this information is now generated by config(8).
1997-01-31 05:12:49 +00:00
thorpej
304c785022
Find the root device in a much more sane way. Also, remove all of the
...
code that determines the root file system type. This is now done in
machine-independent code, much differently.
1997-01-31 02:05:54 +00:00
thorpej
773c77b683
Use the new machine-independent setroot().
1997-01-31 02:04:43 +00:00
thorpej
1a0f586e08
Declare booted_device and booted_partition as "extern".
1997-01-31 02:04:14 +00:00
thorpej
bd1a87986a
Adopt for new file system and root spec grammar.
1997-01-31 02:03:38 +00:00
cgd
96acdadef7
First step inn removing config_scan() and the hacks that gave devices
...
on indirect-config busses a (permanent) softc that they could share
between 'match' and 'attach' routines:
Define __BROKEN_INDIRECT_CONFIG so that old autoconfiguration
interfaces are used, until drivers are converted to use the new
interfaces (actually, converted back to use the _older_ interfaces)
which prohibit indirect configuration devices from receiving a softc
in their match routine that they can share with their attach routine.
1996-12-05 00:13:47 +00:00
jonathan
4c1d96de78
* Replace explicit -O2 in CFLAGS with COPTS macro. Default COPTS?= -O2.
...
Lets users over-ride with makeoptions COPTS="..." in kernel config files.
Leave `mandatory' flags (like -msoft-float which on m68k enforces no
FP in kernel) in CFLAGS.
1996-12-01 06:12:25 +00:00
jtc
9da5f60715
PROF -> GPROF
1996-11-30 02:48:57 +00:00
jtc
16b48272c4
Define _BSD_CLOCKID_T_ and _BSD_TIMER_T_
1996-11-15 22:38:45 +00:00
cgd
8a3333b2a9
Fix an inconsistency that came in with Lite: setrq() was renamed to
...
setrunqueue(), but remrq() was never renamed. Rename remrq() to
remrunqueue().
1996-11-06 20:19:19 +00:00
ws
2c65d27e6b
Forgot to "cvs add" this in the last:
...
Rename recently checked in KGDB to IPKDB to resolve conflicts with older KGDB
1996-10-17 12:09:05 +00:00
ws
31bdb14ed5
Rename recently checked in KGDB to IPKDB to resolve conflicts with older KGDB
1996-10-16 19:32:08 +00:00
ws
cf37e5a69e
Indent properly
1996-10-16 17:26:19 +00:00
ws
e8b039bf8b
Add EXEC_ stuff
1996-10-16 17:13:28 +00:00
christos
e37692f04d
backout previous kprintf change
1996-10-13 03:29:05 +00:00
christos
30efd6881a
use in_addr_t and in_port_t
1996-10-13 03:16:41 +00:00
christos
848c9d8f02
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:39:22 +00:00
cgd
472889f8e4
moved to aout_machdep.h (via repository copy)
1996-10-08 12:57:37 +00:00
cgd
6ab18a1959
don't include <machine/exec.h> explicitly. No other changes needed, since
...
<sys/exec.h> was already being included.
1996-10-07 21:43:02 +00:00
ws
f828028e92
Add some files that CVS missed somehow
...
These are empty for now, but are needed by MI code
1996-10-01 16:13:50 +00:00
ws
5804d3f648
PowerPC port
1996-09-30 16:34:14 +00:00