Deleted Added
full compact
mv_machdep.c (184729) mv_machdep.c (185513)
1/*-
2 * Copyright (c) 1994-1998 Mark Brinicombe.
3 * Copyright (c) 1994 Brini.
4 * All rights reserved.
5 *
6 * This code is derived from software written for Brini by Mark Brinicombe
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 *
35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45
36 */
37
38#include "opt_msgbuf.h"
39#include "opt_ddb.h"
40
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994-1998 Mark Brinicombe.
3 * Copyright (c) 1994 Brini.
4 * All rights reserved.
5 *
6 * This code is derived from software written for Brini by Mark Brinicombe
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 *
35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45
36 */
37
38#include "opt_msgbuf.h"
39#include "opt_ddb.h"
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 184729 2008-11-06 16:25:12Z raj $");
42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 185513 2008-12-01 10:16:25Z stas $");
43
44#define _ARM32_BUS_DMA_PRIVATE
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/sysproto.h>
48#include <sys/signalvar.h>
49#include <sys/imgact.h>
50#include <sys/kernel.h>

--- 523 unchanged lines hidden (view full) ---

574
575 /*
576 * We must now clean the cache again....
577 * Cleaning may be done by reading new data to displace any
578 * dirty data in the cache. This will have happened in setttb()
579 * but since we are boot strapping the addresses used for the read
580 * may have just been remapped and thus the cache could be out
581 * of sync. A re-clean after the switch will cure this.
43
44#define _ARM32_BUS_DMA_PRIVATE
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/sysproto.h>
48#include <sys/signalvar.h>
49#include <sys/imgact.h>
50#include <sys/kernel.h>

--- 523 unchanged lines hidden (view full) ---

574
575 /*
576 * We must now clean the cache again....
577 * Cleaning may be done by reading new data to displace any
578 * dirty data in the cache. This will have happened in setttb()
579 * but since we are boot strapping the addresses used for the read
580 * may have just been remapped and thus the cache could be out
581 * of sync. A re-clean after the switch will cure this.
582 * After booting there are no gross reloations of the kernel thus
582 * After booting there are no gross relocations of the kernel thus
583 * this problem will not occur after initarm().
584 */
585 cpu_idcache_wbinv_all();
586
587 /* Set stack for exception handlers */
588 data_abort_handler_address = (u_int)data_abort_handler;
589 prefetch_abort_handler_address = (u_int)prefetch_abort_handler;
590 undefined_handler_address = (u_int)undefinedinstruction_bounce;

--- 51 unchanged lines hidden ---
583 * this problem will not occur after initarm().
584 */
585 cpu_idcache_wbinv_all();
586
587 /* Set stack for exception handlers */
588 data_abort_handler_address = (u_int)data_abort_handler;
589 prefetch_abort_handler_address = (u_int)prefetch_abort_handler;
590 undefined_handler_address = (u_int)undefinedinstruction_bounce;

--- 51 unchanged lines hidden ---