summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-02-22 15:13:34 +0000
committerbde <bde@FreeBSD.org>1999-02-22 15:13:34 +0000
commit80534e76e10c44b535229944b28cd5798ce2142b (patch)
tree71d5ee9a4601a31fa3e8b04e945548d8b5abedcb /sys/i386
parentcbe16adbf842f276a10b8f5d5e192f23640b99df (diff)
downloadFreeBSD-src-80534e76e10c44b535229944b28cd5798ce2142b.zip
FreeBSD-src-80534e76e10c44b535229944b28cd5798ce2142b.tar.gz
Added a per-cpu variable `switchticks' for use in scheduling.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/genassym.c3
-rw-r--r--sys/i386/i386/globals.s5
-rw-r--r--sys/i386/include/asnames.h3
-rw-r--r--sys/i386/include/globaldata.h3
-rw-r--r--sys/i386/include/pcpu.h3
5 files changed, 11 insertions, 6 deletions
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c
index 31e5702..0da064f 100644
--- a/sys/i386/i386/genassym.c
+++ b/sys/i386/i386/genassym.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
- * $Id: genassym.c,v 1.61 1998/09/24 10:22:21 bde Exp $
+ * $Id: genassym.c,v 1.62 1998/10/08 21:03:41 msmith Exp $
*/
#include "opt_vm86.h"
@@ -199,6 +199,7 @@ main()
printf("#define\tGD_CURPCB %#x\n", OS(globaldata, curpcb));
printf("#define\tGD_COMMON_TSS %#x\n", OS(globaldata, common_tss));
printf("#define\tGD_SWITCHTIME %#x\n", OS(globaldata, switchtime));
+ printf("#define\tGD_SWITCHTICKS %#x\n", OS(globaldata, switchticks));
#ifdef VM86
printf("#define\tGD_COMMON_TSSD %#x\n", OS(globaldata, common_tssd));
printf("#define\tGD_PRIVATE_TSS %#x\n", OS(globaldata, private_tss));
diff --git a/sys/i386/i386/globals.s b/sys/i386/i386/globals.s
index eb3a913..1697750e 100644
--- a/sys/i386/i386/globals.s
+++ b/sys/i386/i386/globals.s
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globals.s,v 1.7 1998/08/18 07:46:58 msmith Exp $
+ * $Id: globals.s,v 1.8 1998/09/28 12:20:46 peter Exp $
*/
#include "opt_vm86.h"
@@ -69,12 +69,13 @@
globaldata:
.space GD_SIZEOF /* in data segment */
#endif
- .globl _curproc,_curpcb,_npxproc,_common_tss,_switchtime
+ .globl _curproc,_curpcb,_npxproc,_common_tss,_switchtime,_switchticks
.set _curproc,globaldata + GD_CURPROC
.set _curpcb,globaldata + GD_CURPCB
.set _npxproc,globaldata + GD_NPXPROC
.set _common_tss,globaldata + GD_COMMON_TSS
.set _switchtime,globaldata + GD_SWITCHTIME
+ .set _switchticks,globaldata + GD_SWITCHTICKS
#ifdef VM86
.globl _common_tssd,_private_tss,_my_tr
diff --git a/sys/i386/include/asnames.h b/sys/i386/include/asnames.h
index d653571..caf1d45 100644
--- a/sys/i386/include/asnames.h
+++ b/sys/i386/include/asnames.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: asnames.h,v 1.27 1999/01/30 15:38:48 kato Exp $
+ * $Id: asnames.h,v 1.28 1999/02/06 08:41:05 bde Exp $
*/
#ifndef _MACHINE_ASNAMES_H_
@@ -354,6 +354,7 @@
#define _swi_generic swi_generic
#define _swi_null swi_null
#define _swi_vm swi_vm
+#define _switchticks switchticks
#define _switchtime switchtime
#define _syscall syscall
#define _szsigcode szsigcode
diff --git a/sys/i386/include/globaldata.h b/sys/i386/include/globaldata.h
index e182d0a..ec58799 100644
--- a/sys/i386/include/globaldata.h
+++ b/sys/i386/include/globaldata.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globaldata.h,v 1.5 1998/05/28 09:30:02 phk Exp $
+ * $Id: globaldata.h,v 1.6 1998/08/18 07:47:12 msmith Exp $
*/
/*
@@ -44,6 +44,7 @@ struct globaldata {
struct pcb *curpcb;
struct i386tss common_tss;
struct timeval switchtime;
+ int switchticks;
#ifdef VM86
struct segment_descriptor common_tssd;
u_int private_tss;
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h
index e182d0a..ec58799 100644
--- a/sys/i386/include/pcpu.h
+++ b/sys/i386/include/pcpu.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globaldata.h,v 1.5 1998/05/28 09:30:02 phk Exp $
+ * $Id: globaldata.h,v 1.6 1998/08/18 07:47:12 msmith Exp $
*/
/*
@@ -44,6 +44,7 @@ struct globaldata {
struct pcb *curpcb;
struct i386tss common_tss;
struct timeval switchtime;
+ int switchticks;
#ifdef VM86
struct segment_descriptor common_tssd;
u_int private_tss;
OpenPOWER on IntegriCloud