The NetBSD Project

CVS log for src/sys/arch/i386/include/segments.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.70 / (download) - annotate - [select for diffs], Wed May 18 13:56:32 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

fix typos in word "access" and it derivatives, mainly in comments.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Jul 14 00:45:53 2020 UTC (3 years, 9 months ago) by yamaguchi
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.68: +9 -9 lines
Diff to previous 1.68 (colored)

Introduce per-cpu IDTs

This is realized by following modifications:
- Add IDT pages and its allocation maps for each cpu in "struct cpu_info"
- Load per-cpu IDTs at cpu_init_idt(struct cpu_info*)
- Copy the IDT entries for cpu0 to other CPUs at attach
   - These are, for example, exceptions, db, system calls, etc.

And, added a kernel option named PCPU_IDT to enable the feature.

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:20 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.64: +14 -6 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:32 2019 UTC (5 years, 2 months ago) by cherry
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.67: +7 -7 lines
Diff to previous 1.67 (colored)

We reorganise definitions for XEN source support as follows:

XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:44 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.64: +10 -2 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Ssync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Sun Sep 23 15:28:49 2018 UTC (5 years, 6 months ago) by cherry
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Fix for i386, functionality intended in:
http://mail-index.netbsd.org/source-changes/2018/09/23/msg099357.html

This should fix the build for both GENERIC and XEN3PAE_DOM0

This has not been boot tested on native or xen3pae

Notes: pmap_changeprot_local() seems to be x86_64 only.
I was a bit surprised by this initially, but I suspect that the table
protections are enforced via ring0/ring1 fencing rather than page protections

the gdt registration code in i386 is still messy. I will leave it as is
for now - to avoid a rabbit hole.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 23 07:54:42 2018 UTC (5 years, 6 months ago) by cherry
Branch: MAIN
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored)

Summary: Remove older and now conflicting type declaration for global
variable 'idt'.

This should fix the i386 build failure now.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Sep 23 00:59:59 2018 UTC (5 years, 6 months ago) by cherry
Branch: MAIN
Changes since 1.64: +10 -1 lines
Diff to previous 1.64 (colored)

Make XEN use the same api as native, for idt vector allocation
and registration.

lidt() placed in xenfunc() on maxv@ suggestion.

There should be no functional change due to this commit.

Tested on amd64 native and XEN.

Revision 1.54.16.1 / (download) - annotate - [select for diffs], Mon Feb 19 20:55:44 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-6-0
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1517):
	sys/arch/amd64/amd64/machdep.c: 1.280 via patch
	sys/arch/amd64/include/segments.h: 1.34 via patch
	sys/arch/i386/i386/machdep.c: 1.800
	sys/arch/i386/include/segments.h: 1.64
	sys/arch/x86/x86/vm_machdep.c: 1.30
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.24.1 / (download) - annotate - [select for diffs], Mon Feb 19 20:54:53 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-6-1
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1517):
	sys/arch/amd64/amd64/machdep.c: 1.280 via patch
	sys/arch/amd64/include/segments.h: 1.34 via patch
	sys/arch/i386/i386/machdep.c: 1.800
	sys/arch/i386/include/segments.h: 1.64
	sys/arch/x86/x86/vm_machdep.c: 1.30
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.10.1 / (download) - annotate - [select for diffs], Mon Feb 19 20:54:38 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-6
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1517):
	sys/arch/amd64/amd64/machdep.c: 1.280 via patch
	sys/arch/amd64/include/segments.h: 1.34 via patch
	sys/arch/i386/i386/machdep.c: 1.800
	sys/arch/i386/include/segments.h: 1.64
	sys/arch/x86/x86/vm_machdep.c: 1.30
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.30.1 / (download) - annotate - [select for diffs], Mon Jan 22 19:41:08 2018 UTC (6 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1550):
	sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
	sys/arch/amd64/include/segments.h: revision 1.34 via patch
	sys/arch/i386/i386/machdep.c: revision 1.800 via patch
	sys/arch/i386/include/segments.h: revision 1.64 via patch
	sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.38.1 / (download) - annotate - [select for diffs], Mon Jan 22 19:40:58 2018 UTC (6 years, 2 months ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1550):
	sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
	sys/arch/amd64/include/segments.h: revision 1.34 via patch
	sys/arch/i386/i386/machdep.c: revision 1.800 via patch
	sys/arch/i386/include/segments.h: revision 1.64 via patch
	sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.34.1 / (download) - annotate - [select for diffs], Mon Jan 22 19:40:25 2018 UTC (6 years, 2 months ago) by snj
Branch: netbsd-7-0
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by maxv in ticket #1550):
	sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
	sys/arch/amd64/include/segments.h: revision 1.34 via patch
	sys/arch/i386/i386/machdep.c: revision 1.800 via patch
	sys/arch/i386/include/segments.h: revision 1.64 via patch
	sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.59.6.1 / (download) - annotate - [select for diffs], Mon Jan 1 19:09:04 2018 UTC (6 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up following revision(s) (requested by maxv in ticket #477):
	sys/arch/amd64/amd64/machdep.c: revision 1.280
	sys/arch/amd64/include/segments.h: revision 1.34
	sys/arch/i386/i386/machdep.c: revision 1.800
	sys/arch/i386/include/segments.h: revision 1.64 via patch
	sys/arch/x86/x86/vm_machdep.c: revision 1.30
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Dec 31 08:29:38 2017 UTC (6 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored)

Fix a huge privilege separation vulnerability in Xen-amd64.

On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.

It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.

Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

Revision 1.54.14.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:18 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.54: +99 -99 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

update from HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Sat Nov 4 08:50:47 2017 UTC (6 years, 5 months ago) by cherry
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

In XEN PV, the idt vector table is not required to be altered at
runtime, since only entries for exceptions/traps are registered with
the hypervisor and interrupts are managed via a completely different
mechanism.

This change uses the idt_vec_reserve() mechanism nevertheless,
modifying it slightly to only do namespace management in XEN, while on
native it will continue to do idt entry init as before.

Rationale: Consistent API usage and potential future merging of
XEN/non-XEN code.

There are no functional changes in this commit.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Sep 17 09:41:35 2017 UTC (6 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Remove the second argument from USERMODE and KERNELMODE, it is unused
now that we don't have vm86 anymore.

Revision 1.54.32.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:40 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.54.32.2: +11 -13 lines
Diff to previous 1.54.32.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Sat Aug 12 07:35:08 2017 UTC (6 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.60: +1 -10 lines
Diff to previous 1.60 (colored)

Remove vm86.

Pass 4.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jul 2 11:16:50 2017 UTC (6 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.59: +10 -2 lines
Diff to previous 1.59 (colored)

Use a bitmap-based allocator for i386, same as amd64. Several functions
are now identical - or nearly identical - on both sides. I couldn't test
this change on xen, because I'm having some unrelated issues with my VM
and I've spent enough time not understanding what's wrong with it.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:28 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.57: +2 -3 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:14 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.55: +2 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 8 09:39:32 2017 UTC (7 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.58: +1 -2 lines
Diff to previous 1.58 (colored)

Localify, add a comment and merge some others.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Feb 5 10:42:21 2017 UTC (7 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Rename ldt->ldtstore and gdt->gdtstore on i386. It reduces the diff with
amd64, and makes it easier to track down these variables on nxr - 'ldt'
and 'gdt' being common keywords.

Revision 1.54.32.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:28 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.54.32.1: +90 -88 lines
Diff to previous 1.54.32.1 (colored) to branchpoint 1.54 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Fri Sep 2 08:28:06 2016 UTC (7 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.56: +90 -87 lines
Diff to previous 1.56 (colored)

KNF, and give the structure sizes.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Aug 27 14:19:47 2016 UTC (7 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

Remove idt_init.

Revision 1.54.32.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:00 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jan 24 18:21:50 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Branch point for: pgoyette-localcount
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

expose __vaddr_t for segments.h since it is a userland api.

Revision 1.50.4.2 / (download) - annotate - [select for diffs], Wed Mar 21 21:29:31 2012 UTC (12 years ago) by jdc
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.50.4.1: +2 -1 lines
Diff to previous 1.50.4.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Apply patch (requested by bouyer in ticket #1738).

Do not special-case XEN and always use the proper selectors for %fs and %gs
in buildcontext() and setregs(). The consequence was that signal handlers
would have the wrong %fs/%gs. Found by running atf tests under Xen/i386.

Revision 1.53.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:05:51 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Tue May 31 03:04:04 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

sync with head

Revision 1.50.8.4 / (download) - annotate - [select for diffs], Mon May 2 22:49:56 2011 UTC (12 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.50.8.3: +1 -2 lines
Diff to previous 1.50.8.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Apr 26 15:51:23 2011 UTC (12 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)

Remove Darwin, MACH and Mach-O support.

Revision 1.50.8.3 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:34 2009 UTC (14 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.50.8.2: +0 -0 lines
Diff to previous 1.50.8.2 (colored) to branchpoint 1.50 (colored)

Sync with HEAD.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:05 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49.2.1: +2 -1 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

sync with head

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Sun May 31 14:32:33 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.50.8.1: +2 -1 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Sun May 17 18:24:23 2009 UTC (14 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

on Xen the GDT has to be updated though HYPERVISOR_update_descriptor().
Export i386/i386/gdt.c:update_descriptor() and use it in x86_set_sdbase(),
as a direct write to the GDT will cause a kernel trap.
Fix PR port-xen/41401.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:50 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.50: +5 -4 lines
Diff to previous 1.50 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:11:17 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.49: +12 -10 lines
Diff to previous 1.49 (colored)

sync with head.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:12 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.50: +5 -4 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Mar 21 22:17:13 2009 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

A couple more comments.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Mar 21 21:42:00 2009 UTC (15 years ago) by ad
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

Add a comment.

Revision 1.48.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:04 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.48.6.1: +7 -6 lines
Diff to previous 1.48.6.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.49.8.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:14 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.49: +8 -7 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Tue Nov 18 01:56:59 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.50: +9 -1 lines
Diff to previous 1.50 (colored)

Apply patch (requested by bouyer in ticket #65):
Add i386-specific COMPAT_30_PTHREAD option (enabled where COMPAT_30
is enabled), which restore binary compatibility with netbsd-3 libpthread.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Oct 26 17:41:11 2008 UTC (15 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, netbsd-5-base, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Changes since 1.49: +8 -7 lines
Diff to previous 1.49 (colored)

use a macro to get to d_type.

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:17 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.48: +2 -0 lines
Diff to previous 1.48 (colored)

Sync with HEAD.

Revision 1.48.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:14 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Apr 19 12:10:08 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: yamt-nfs-mp, haad-dm
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)

idt_* are not implemented for Xen. So don't provide the prototypes for Xen.

Revision 1.42.20.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:07 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.42.20.2: +23 -1 lines
Diff to previous 1.42.20.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

sync with HEAD

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:40 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.43.2.1: +31 -7 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Sync with HEAD.

Revision 1.41.16.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:37:09 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.16.3: +31 -7 lines
Diff to previous 1.41.16.3 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jan 11 20:00:16 2008 UTC (16 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.47: +23 -1 lines
Diff to previous 1.47 (colored)

Merge the bouyer-xeni386 branch to head, at tag bouyer-xeni386-merge1 (the
branch is still active and will see i386PAE support developement).
Sumary of changes:
- switch xeni386 to the x86/x86/pmap.c, and the xen/x86/x86_xpmap.c
  pmap bootstrap.
- merge back most of xen/i386/ to i386/i386
- change the build to reduce diffs between i386 and amd64 in file locations
- remove include files that were identical to the i386/amd64 counterparts,
  the build will find them via the xen-ma/machine link.

Revision 1.44.6.4 / (download) - annotate - [select for diffs], Wed Jan 9 21:29:54 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.44.6.3: +5 -1 lines
Diff to previous 1.44.6.3 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Merge Xen support back to i386/i386/vector.S

Revision 1.42.20.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:46:43 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.42.20.1: +12 -8 lines
Diff to previous 1.42.20.1 (colored) to branchpoint 1.42 (colored)

sync with HEAD

Revision 1.44.6.3 / (download) - annotate - [select for diffs], Tue Jan 8 22:10:04 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44.6.2: +2 -2 lines
Diff to previous 1.44.6.2 (colored) to branchpoint 1.44 (colored)

Sync with HEAD

Revision 1.44.6.2 / (download) - annotate - [select for diffs], Mon Jan 7 00:34:53 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44.6.1: +18 -0 lines
Diff to previous 1.44.6.1 (colored) to branchpoint 1.44 (colored)

Move Xen support to i386/i386/machdep.c. two less files in xen/ :)

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jan 4 15:55:33 2008 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

i386:
	- make tss per-cpu.  this considerably speeds up context switch for,
	  at least, pentium4, where ltr instruction seems very slow.
i386, xen:
	- kill cpu_maxproc.
kvm86:
	- adapt to per-cpu tss.
	- cleanup and simplify.
	- move kvm86_mp_lock to more meaningful place.
	- disable preemption during a call.

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:23 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.44: +7 -5 lines
Diff to previous 1.44 (colored)

Sync with HEAD

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:42:22 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.44: +7 -5 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Dec 26 11:51:11 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored)

- share idt entry allocation code among x86.
- introduce a function to reserve an idt entry and use it instead of
  manipulating idt_allocmap directly.
- rename idt to xen_idt for amd64 xen.  add missing #ifdef XEN.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:33 2007 UTC (16 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.44: +5 -5 lines
Diff to previous 1.44 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Mon Dec 3 18:36:53 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.42.2.1: +4 -2 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:46:32 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

Sync with HEAD.

Revision 1.41.16.3 / (download) - annotate - [select for diffs], Thu Nov 15 11:42:59 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.16.2: +4 -2 lines
Diff to previous 1.41.16.2 (colored) to branchpoint 1.41 (colored)

sync with head.

Revision 1.42.24.2 / (download) - annotate - [select for diffs], Tue Nov 13 15:58:36 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.42.24.1: +3 -1 lines
Diff to previous 1.42.24.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD

Revision 1.42.18.2 / (download) - annotate - [select for diffs], Sun Nov 11 16:46:35 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.42.18.1: +4 -2 lines
Diff to previous 1.42.18.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 10 20:06:24 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

- When computing the TSC frequency, call i8254_delay() and not DELAY().
- Use atomics to adjust the pmap reference count, instead of taking locks.
- Implement I386_{SET,GET}_{FS,GS}BASE, allowing %fs and %gs to be used
  as per-thread registers. This is compatible with FreeBSD.
- Run patches after we have attached CPUs, since we then know if the
  system is uniprocessor or not. Eliminates a lot of #ifdef MULTIPROCESSOR
  and makes running MP kernels on UP systems cheaper.
- Patch out many of the 'lock' prefixes to nops if uniprocessor.
- Do a wbinvd after patching to ensure that the trace/instruction cache
  is up to date.

Revision 1.42.20.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:17:44 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

sync with HEAD

Revision 1.41.16.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:26:46 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.16.1: +2 -1 lines
Diff to previous 1.41.16.1 (colored) to branchpoint 1.41 (colored)

sync with head.

Revision 1.42.18.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:42:38 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.42.24.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:35:53 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Sync with HEAD.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:13:08 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 18 15:28:37 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

merge yamt-x86pmap branch.

- reduce differences between amd64 and i386.  notably, share pmap.c
  between them.  it makes several i386 pmap improvements available to
  amd64, including tlb shootdown reduction and bug fixes from Stephan Uphoff.
- implement deferred pmap switching for amd64.
- remove LARGEPAGES option.  always use large pages if available.
  also, make it work on amd64.

Revision 1.42.22.1 / (download) - annotate - [select for diffs], Thu Oct 18 11:23:03 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

reduce #ifdef.

Revision 1.41.16.1 / (download) - annotate - [select for diffs], Mon Sep 3 14:26:49 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41: +7 -4 lines
Diff to previous 1.41 (colored)

sync with head.

Revision 1.41.54.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:48:37 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.41: +7 -4 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Mar 2 17:27:26 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.41: +7 -4 lines
Diff to previous 1.41 (colored)

Shuffle the descriptor slots slightly to make the layout match what
sysenter/sysexit require. As far as I can tell this will not introduce
any incompatibility.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:16:57 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.2: +1 -1 lines
Diff to previous 1.36.2.2 (colored) next main 1.37 (colored)

Fix the sync with head I botched.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:35:40 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.1: +0 -0 lines
Diff to previous 1.36.2.1 (colored)

Sync with HEAD.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:36:04 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36: +56 -22 lines
Diff to previous 1.36 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 5 11:33:27 2004 UTC (20 years, 1 month ago) by junyoung
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-vnode-attr-base, thorpej-vnode-attr, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-nb4-arm-base, matt-nb4-arm, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-lazymbuf, yamt-idlelwp
Changes since 1.40: +7 -7 lines
Diff to previous 1.40 (colored)

Drop trailing spaces.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:14 2004 UTC (20 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Oct 27 13:44:20 2003 UTC (20 years, 5 months ago) by junyoung
Branch: MAIN
Changes since 1.38: +12 -12 lines
Diff to previous 1.38 (colored)

Nuke __P().

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 24 17:52:33 2003 UTC (20 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

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.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Aug 7 16:28:00 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.36: +35 -3 lines
Diff to previous 1.36 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Mar 3 22:14:18 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

The IDT only contains gate descriptors, so define it as such.

Revision 1.30.8.4 / (download) - annotate - [select for diffs], Fri Oct 18 02:37:58 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.30.8.3: +18 -8 lines
Diff to previous 1.30.8.3 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Catch up to -current.

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:33:30 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.31.2.2: +14 -6 lines
Diff to previous 1.31.2.2 (colored) next main 1.32 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.35 / (download) - annotate - [select for diffs], Sat Oct 5 21:26:24 2002 UTC (21 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)

Change setgate() prototype.
Define GDT entries for DDB and double fault TSS.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 1 12:57:09 2002 UTC (21 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.33: +14 -6 lines
Diff to previous 1.33 (colored)

Merge Bill Sommerfeld's i386 MP branch. This code has some known
caveats, but works quite well in a lot of MP cases, and all
UP cases that I have tested. Parts of this will hopefully be
reworked in the not-too-distant future.

Revision 1.30.8.3 / (download) - annotate - [select for diffs], Thu Feb 28 04:10:20 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.8.2: +26 -15 lines
Diff to previous 1.30.8.2 (colored) to branchpoint 1.30 (colored)

Catch up to -current.

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:08:26 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.31.2.1: +26 -15 lines
Diff to previous 1.31.2.1 (colored)

Sync w/ -current.

Revision 1.30.2.5 / (download) - annotate - [select for diffs], Mon Jan 28 04:21:40 2002 UTC (22 years, 2 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
CVS Tags: i386mp_plus16_stable
Changes since 1.30.2.4: +26 -16 lines
Diff to previous 1.30.2.4 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Yet Another mergeup with -current.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 23 15:02:34 2002 UTC (22 years, 2 months ago) by rafal
Branch: MAIN
CVS Tags: sommerfeld_i386mpnext, sommerfeld_i386mpbase_1, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.32: +26 -15 lines
Diff to previous 1.32 (colored)

Re-arrange GDT entries somewhat so that: (1) I can reserve the 8th entry for
BIOS-bug-avoidance [fixes part of my own port-i386/11299], and (2) lets you
have APM and COMPAT_MACHO in the kernel at the same time.  Also comments on
the special 8th entry and what else changing some of these values affects.

OK'ed by Frank.

Revision 1.30.2.4 / (download) - annotate - [select for diffs], Sat Dec 29 23:31:08 2001 UTC (22 years, 3 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.30.2.3: +4 -2 lines
Diff to previous 1.30.2.3 (colored) to branchpoint 1.30 (colored)

Set up per-cpu GDT.
Use %fs for per-cpu data access.

Revision 1.30.8.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:08:35 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30.8.1: +5 -1 lines
Diff to previous 1.30.8.1 (colored) to branchpoint 1.30 (colored)

Catch up with -current.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:11:46 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.31: +5 -1 lines
Diff to previous 1.31 (colored)

update to -current

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Thu Jul 19 08:57:30 2001 UTC (22 years, 9 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.30.2.2: +4 -0 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored)

catch up with -current

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 14 02:02:45 2001 UTC (22 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.31: +5 -1 lines
Diff to previous 1.31 (colored)

Use global descriptor 7 for mach traps. Unfortunately this is already
used by apm 16 bit code segments so we cannot have both at the same time.

Revision 1.30.8.1 / (download) - annotate - [select for diffs], Thu Jun 21 19:25:55 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Catch up to -current.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Mon Jun 18 03:33:32 2001 UTC (22 years, 10 months ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.30.2.1: +2 -2 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored)

checkpoint merge-in-progress from mainline.

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 30 12:28:45 2001 UTC (22 years, 10 months ago) by mrg
Branch: MAIN
Branch point for: kqueue
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

use _KERNEL_OPT

Revision 1.29.12.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:09:30 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Feb 20 17:44:43 2000 UTC (24 years, 1 month ago) by sommerfeld
Branch: sommerfeld_i386mp_1
Changes since 1.30: +8 -1 lines
Diff to previous 1.30 (colored)

Include functions for allocation and freeing of IDT slots.

Revision 1.29.18.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:32:23 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Pull up to last week's -current.

Revision 1.29.14.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:38:07 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with -current

Revision 1.30 / (download) - annotate - [select for diffs], Fri Nov 12 18:37:29 1999 UTC (24 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, sommerfeld_i386mpbase_20000422, sommerfeld_i386mp_houseclean, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, chs-ubc2-newbase
Branch point for: sommerfeld_i386mp_1, nathanw_sa
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored)

add GDT segments for pnpbios use

Revision 1.25.14.2 / (download) - annotate - [select for diffs], Sat Oct 17 22:14:52 1998 UTC (25 years, 6 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.25.14.1: +2 -1 lines
Diff to previous 1.25.14.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

pull up rev 1.29 from trunk (christos)

Revision 1.29 / (download) - annotate - [select for diffs], Sat Oct 3 18:05:25 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add an LDT for Solaris-2.6 syscalls [from Frank]

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 23 00:44:11 1998 UTC (26 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.27: +2 -4 lines
Diff to previous 1.27 (colored)

Some rearrangement of the startup code:
* Move some of the memory bootstrapping and the DDB startup earlier.
* Always put the IDT and the initial GDT and LDT in a separate page.
* Various minor changes.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 15 22:26:04 1998 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored)

Generate dependencies on the VM86 option.

Revision 1.25.14.1 / (download) - annotate - [select for diffs], Thu Nov 13 08:10:04 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.25: +6 -4 lines
Diff to previous 1.25 (colored)

Pull rev 1.26 up from trunk (mycroft)

Revision 1.26 / (download) - annotate - [select for diffs], Thu Nov 13 03:16:53 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +6 -4 lines
Diff to previous 1.25 (colored)

Some general cleanup:
* Call gdt_init() earlier on.
* Don't bother to check for TSS and LDT descriptors in verr_gdt().
* Nuke the sti special case for trace and breakpoint traps.
* Move some variable declarations into more appropriate locations.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 8 15:46:09 1996 UTC (27 years, 7 months ago) by jtk
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

change APM to use new almost-generalized BIOS trampoline:

/*
 * void bioscall(int function, struct apmregs *regs):
 * 	call the BIOS interrupt "function" from real mode with
 *	registers as specified in "regs"
 *	(for the flags, though, only these flags are passed to the BIOS;
 *	the remainder come from the flags register at the time of the call:
 *	(PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
 *
 *	Fills in *regs with registers as returned by BIOS.
 */

Thanks to Charles Hannum for complaining and inspiring me to hack this
together.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 25 23:39:54 1996 UTC (27 years, 7 months ago) by jtk
Branch: MAIN
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored)

add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 1 22:31:03 1996 UTC (28 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

LOCORE -> _LOCORE

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 20 18:09:24 1995 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Use #pragma only for 2.0 <= GCC < 2.7.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 20 17:58:55 1995 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Use alternate structure packing method added in GCC 2.7.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Thu Oct 12 17:57:02 1995 UTC (28 years, 6 months ago) by mycroft
Branch: netbsd-1-1
Changes since 1.20.2.1: +232 -0 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Move the initialization of proc0's TSS and LDT to the end of cpu_startup(),
and switch to dynamically allocating the TSS.

Revision 1.20.2.1, Thu Oct 12 17:57:01 1995 UTC (28 years, 6 months ago) by mycroft
Branch: netbsd-1-1
Changes since 1.20: +0 -232 lines
FILE REMOVED

file segments.h was added on branch netbsd-1-1 on 1995-10-12 17:57:02 +0000

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 12 17:57:01 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Changes since 1.19: +3 -4 lines
Diff to previous 1.19 (colored)

Move the initialization of proc0's TSS and LDT to the end of cpu_startup(),
and switch to dynamically allocating the TSS.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 11 19:33:06 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

Go back to statically allocating the GDT entries for proc0.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 11 06:24:28 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Remove reference to dead variable.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 11 04:20:25 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +4 -6 lines
Diff to previous 1.16 (colored)

Various changes from John Kohl and me:
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 10 04:45:57 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +9 -1 lines
Diff to previous 1.15 (colored)

Add USERMODE() and KERNELMODE() macros, and use them.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 9 06:34:41 1995 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +7 -22 lines
Diff to previous 1.14 (colored)

Eliminate soft segment descriptors; instead use a functional interface for
creating segment descriptors.  Add the duplicate system call gate used by
BSD/OS 2.0 executables.  Prototype setsegment() and setgate(), and fix a bogon
caught by this.

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 6 20:30:18 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +7 -5 lines
Diff to previous 1.13 (colored)

Add a copy of the user code and data descriptors in the GDT.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 4 05:37:39 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Wrap NGDT and NLDT in parens.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 1 07:37:43 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +73 -75 lines
Diff to previous 1.11 (colored)

Make this includable from locore.  Remove unused GDT and LDT slots.

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 1 04:49:51 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Expose idt[] here.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 28 18:17:18 1995 UTC (29 years ago) by jtc
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

KERNEL -> _KERNEL

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 8 23:09:24 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +6 -1 lines
Diff to previous 1.8 (colored)

pcb.h requires segments.h now.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 5 03:20:36 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Fully prototype ssdtosd() and sdtossd().

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 27 04:16:24 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: before_newconf_base
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

new RCS ID format.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 3 18:53:53 1994 UTC (30 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.5: +40 -43 lines
Diff to previous 1.5 (colored)

Clean this up a little.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Dec 20 05:25:44 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.5.2.1: +238 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Cleanup and garbage collection; nothing significant.  From magnum branch.

Revision 1.5.2.1, Mon Dec 20 05:25:43 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.5: +0 -238 lines
FILE REMOVED

file segments.h was added on branch magnum on 1993-12-20 05:25:44 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 20 05:25:43 1993 UTC (30 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.4: +4 -5 lines
Diff to previous 1.4 (colored)

Cleanup and garbage collection; nothing significant.  From magnum branch.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Tue Oct 26 16:45:21 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.3: +36 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Merge changes from trunk.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 26 15:53:54 1993 UTC (30 years, 5 months ago) by brezak
Branch: MAIN
Changes since 1.3: +37 -3 lines
Diff to previous 1.3 (colored)

Cleanup LDT/GDT defines

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 22 08:00:37 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

add rcsids to everything and clean up headers

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 3 02:16:39 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +8 -0 lines
Diff to previous 1.1 (colored)

added changes from Steven Reiz <sreiz@aie.nl> (based on
those by Poul-Henning Kamp <phk@data.fls.dk>) to get the kernel
to compile properly when gcc2.* is cc.  (should still work
when gcc1.39 is in use.)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>