summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-14 12:45:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-15 02:18:49 +0100
commit6559a03dd8ea9e9af34802766417dde1d1b047b2 (patch)
tree4be8274a38f35fec6769aa2c9c2881da05ce37ac /i386
parenta362fb22008bdab332d5da2d83f6428340c373ab (diff)
i386/i386/trap.c: remove register qualifiers
* i386/i386/trap.c: Remove register qualifiers.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/trap.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index c6aab48..f483497 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -75,8 +75,8 @@ extern boolean_t db_watchpoints_inserted;
void
thread_kdb_return()
{
- register thread_t thread = current_thread();
- register struct i386_saved_state *regs = USER_REGS(thread);
+ thread_t thread = current_thread();
+ struct i386_saved_state *regs = USER_REGS(thread);
if (kdb_trap(regs->trapno, regs->err, regs)) {
thread_exception_return();
@@ -94,8 +94,8 @@ void
user_page_fault_continue(kr)
kern_return_t kr;
{
- register thread_t thread = current_thread();
- register struct i386_saved_state *regs = USER_REGS(thread);
+ thread_t thread = current_thread();
+ struct i386_saved_state *regs = USER_REGS(thread);
if (kr == KERN_SUCCESS) {
#if MACH_KDB
@@ -159,14 +159,14 @@ boolean_t brb = TRUE;
* fatal.
*/
void kernel_trap(regs)
- register struct i386_saved_state *regs;
+ struct i386_saved_state *regs;
{
- int code;
- int subcode;
- register int type;
+ int code;
+ int subcode;
+ int type;
vm_map_t map;
kern_return_t result;
- register thread_t thread;
+ thread_t thread;
extern char _start[], etext[];
type = regs->trapno;
@@ -275,7 +275,7 @@ dump_ss(regs);
* Certain faults require that we back up
* the EIP.
*/
- register struct recovery *rp;
+ struct recovery *rp;
/* Linear searching; but the list is small enough. */
for (rp = retry_table; rp < retry_table_end; rp++) {
@@ -292,7 +292,7 @@ dump_ss(regs);
* for this fault, go there.
*/
{
- register struct recovery *rp;
+ struct recovery *rp;
/* Linear searching; but the list is small enough. */
for (rp = recover_table;
@@ -352,13 +352,13 @@ dump_ss(regs);
* Return TRUE if from emulated system call.
*/
int user_trap(regs)
- register struct i386_saved_state *regs;
+ struct i386_saved_state *regs;
{
int exc = 0; /* Suppress gcc warning */
int code;
int subcode;
- register int type;
- register thread_t thread = current_thread();
+ int type;
+ thread_t thread = current_thread();
if ((vm_offset_t)thread < phys_last_addr) {
printf("user_trap: bad thread pointer 0x%p\n", thread);
@@ -645,7 +645,7 @@ unsigned
interrupted_pc(t)
thread_t t;
{
- register struct i386_saved_state *iss;
+ struct i386_saved_state *iss;
iss = USER_REGS(t);
return iss->eip;