summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-23 18:01:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:49:43 +0100
commitc7dddd3975e892bc062b55a63bccbc390fcb368a (patch)
tree50e7dc0aee4ce47b1167bbce832bf5de64799dc1
parente23838032fef61d63bb82980dd0cbc1e6c0724f9 (diff)
Remove leftover register qualifiers
* ddb/db_break.c: Remove register qualifiers. * i386/i386/pcb.c: Likewise. * i386/i386at/com.c: Likewise. * i386/i386at/lpr.c: Likewise. * i386/intel/pmap.c: Likewise. * kern/machine.c: Likewise. * kern/queue.h: Likewise. * kern/sched_prim.c: Likewise. * kern/sched_prim.h: Likewise. * kern/timer.c: Likewise. * vm/vm_fault.c: Likewise. * vm/vm_resident.h: Likewise.
-rw-r--r--ddb/db_break.c2
-rw-r--r--i386/i386/pcb.c2
-rw-r--r--i386/i386at/com.c2
-rw-r--r--i386/i386at/lpr.c2
-rw-r--r--i386/intel/pmap.c6
-rw-r--r--kern/machine.c2
-rw-r--r--kern/queue.h2
-rw-r--r--kern/sched_prim.c4
-rw-r--r--kern/sched_prim.h2
-rw-r--r--kern/timer.c3
-rw-r--r--vm/vm_fault.c2
-rw-r--r--vm/vm_resident.h6
12 files changed, 16 insertions, 19 deletions
diff --git a/ddb/db_break.c b/ddb/db_break.c
index 562c41a..0491be7 100644
--- a/ddb/db_break.c
+++ b/ddb/db_break.c
@@ -82,7 +82,7 @@ db_breakpoint_alloc()
void
db_breakpoint_free(bkpt)
- register db_breakpoint_t bkpt;
+ db_breakpoint_t bkpt;
{
bkpt->link = db_free_breakpoints;
db_free_breakpoints = bkpt;
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index da42bd1..bb30959 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -765,7 +765,7 @@ kern_return_t thread_getstatus(thread, flavor, tstate, count)
case i386_V86_ASSIST_STATE:
{
- register struct i386_v86_assist_state *state;
+ struct i386_v86_assist_state *state;
if (*count < i386_V86_ASSIST_STATE_COUNT)
return KERN_INVALID_ARGUMENT;
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index e0549ea..90e1d0b 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -548,7 +548,7 @@ int unit;
static void
comparam(unit)
-register int unit;
+int unit;
{
struct tty *tp = &com_tty[unit];
u_short addr = (int)tp->t_addr;
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c
index 0f06be0..557eb15 100644
--- a/i386/i386at/lpr.c
+++ b/i386/i386at/lpr.c
@@ -275,7 +275,7 @@ struct tty *tp;
void
lprstop(tp, flags)
-register struct tty *tp;
+struct tty *tp;
int flags;
{
if ((tp->t_state & TS_BUSY) && (tp->t_state & TS_TTSTOP) == 0)
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 7db14e5..038f3a8 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -1608,7 +1608,7 @@ void pmap_page_protect(phys, prot)
/*
* Write-protect.
*/
- register int i = ptes_per_vm_page;
+ int i = ptes_per_vm_page;
do {
#ifdef MACH_PV_PAGETABLES
@@ -2198,7 +2198,7 @@ void pmap_collect(p)
*/
wired = 0;
{
- register pt_entry_t *ptep;
+ pt_entry_t *ptep;
for (ptep = ptp; ptep < eptp; ptep++) {
if (*ptep & INTEL_PTE_WIRED) {
wired = 1;
@@ -2247,7 +2247,7 @@ void pmap_collect(p)
* And free the pte page itself.
*/
{
- register vm_page_t m;
+ vm_page_t m;
vm_object_lock(pmap_object);
m = vm_page_lookup(pmap_object, pa);
diff --git a/kern/machine.c b/kern/machine.c
index c1df28b..f69e728 100644
--- a/kern/machine.c
+++ b/kern/machine.c
@@ -409,7 +409,7 @@ __volatile__
void processor_doshutdown(); /* forward */
void processor_doaction(processor)
-register processor_t processor;
+processor_t processor;
{
thread_t this_thread;
spl_t s;
diff --git a/kern/queue.h b/kern/queue.h
index 8835ad6..518084d 100644
--- a/kern/queue.h
+++ b/kern/queue.h
@@ -179,7 +179,7 @@ void insque(queue_entry_t, queue_entry_t);
*/
#define queue_enter(head, elt, type, field) \
{ \
- register queue_entry_t prev; \
+ queue_entry_t prev; \
\
prev = (head)->prev; \
if ((head) == prev) { \
diff --git a/kern/sched_prim.c b/kern/sched_prim.c
index d378fa3..2946701 100644
--- a/kern/sched_prim.c
+++ b/kern/sched_prim.c
@@ -490,8 +490,8 @@ void thread_sleep(
* xxx - DO NOT export this to users.
*/
void thread_bind(
- register thread_t thread,
- processor_t processor)
+ thread_t thread,
+ processor_t processor)
{
spl_t s;
diff --git a/kern/sched_prim.h b/kern/sched_prim.h
index 5311d16..e08f570 100644
--- a/kern/sched_prim.h
+++ b/kern/sched_prim.h
@@ -115,7 +115,7 @@ extern void compute_priority(
thread_t thread,
boolean_t resched);
extern void thread_timeout_setup(
- register thread_t thread);
+ thread_t thread);
/*
* Routines defined as macros
diff --git a/kern/timer.c b/kern/timer.c
index 124227c..d16329a 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -328,7 +328,6 @@ timer_t new_timer;
* called only rarely, to make sure low_bits never overflows.
*/
void timer_normalize(timer)
-register
timer_t timer;
{
unsigned int high_increment;
@@ -410,7 +409,6 @@ timer_save_t save;
void
timer_read(timer, tv)
timer_t timer;
-register
time_value_t *tv;
{
timer_save_data_t temp;
@@ -505,7 +503,6 @@ void db_thread_read_times(thread, user_time_p, system_time_p)
unsigned
timer_delta(timer, save)
-register
timer_t timer;
timer_save_t save;
{
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index 4b30f98..d0c7f96 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -1301,7 +1301,7 @@ kern_return_t vm_fault(map, vaddr, fault_type, change_wiring,
goto done;
case VM_FAULT_MEMORY_SHORTAGE:
if (continuation != (void (*)()) 0) {
- register vm_fault_state_t *state =
+ vm_fault_state_t *state =
(vm_fault_state_t *) current_thread()->ith_other;
/*
diff --git a/vm/vm_resident.h b/vm/vm_resident.h
index 67f1807..e8bf681 100644
--- a/vm/vm_resident.h
+++ b/vm/vm_resident.h
@@ -38,8 +38,8 @@
* The object and page must be locked.
*/
extern void vm_page_replace (
- register vm_page_t mem,
- register vm_object_t object,
- register vm_offset_t offset);
+ vm_page_t mem,
+ vm_object_t object,
+ vm_offset_t offset);
#endif /* _VM_RESIDENT_H_ */