Commit Graph

1008 Commits

Author SHA1 Message Date
kiyohara
9de4dc009f Fix print message. 2009-11-29 10:08:15 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
mbalmer
0ae57f90dd more s/the the/the/ 2009-11-22 19:09:15 +00:00
kiyohara
04ffa2b739 Move definition 'void gxlcd_cnattach(void)' to gumstixvar.h. 2009-11-22 12:05:14 +00:00
kiyohara
64ba3e027a Add GPIO configuration 'LCD backlight on'.
Remove 'XXXX' in comment.  That GPIO config is power on the Marvell 88W8385.
2009-11-22 12:00:56 +00:00
rmind
7721462952 Use lwp_getpcb() on ARM (and acorn26/32), clean from struct user usage. 2009-11-21 20:32:13 +00:00
kiyohara
16ef4dd6d8 The variable ckenreg is used only when defined macro {FF,ST,BT,HW}UARTCONSOLE. 2009-11-21 08:41:38 +00:00
kiyohara
f97cdf80e0 Fix a bug.
sc = device_private(self);
  sc->dev = self;
2009-11-21 08:33:50 +00:00
cegger
9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
uebayasi
997d28a770 Informative comments instead of useless blank lines. 2009-11-05 16:28:09 +00:00
cegger
62cf489d8e kill extra whitespaces
reviewed by tsutsui@
2009-10-26 19:16:54 +00:00
snj
7e82f68c7b Switch to a 2 clause license. Approved by joff@ (copyright holder). 2009-10-23 00:39:29 +00:00
rmind
f95af63371 Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
2009-10-21 14:15:50 +00:00
bsh
0c0e7d064d add options COMPAT_50 to all evbarm boards. 2009-10-11 16:20:22 +00:00
skrll
dc89c66367 Deal with the following change to ld:
* The default output section LMA has changed for allocatable sections from
  being equal to VMA, to keeping the difference between LMA and VMA the same as
  the previous output section in the same region.  This is a more useful
  default when using overlays and other cases where you specify an LMA
  differing from the VMA for some sections.
2009-09-26 07:29:55 +00:00
tsutsui
3b0a685f2b Split device_t/softc. Tested only on cs at ofisa on shark. 2009-09-22 14:55:19 +00:00
dyoung
5619bf1cbb isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:14:59 +00:00
dyoung
47b66b70d9 These are stragglers from my last commit ("Let us safely detach
the ISA bus and devices attaching to the ISA bus").  Define
isa_detach_hook() in MD ISA implementations.  Define isa_dmadestroy().
2009-08-18 17:02:00 +00:00
kiyohara
60a987241b Use __UNCONST(). 2009-08-15 10:18:17 +00:00
matt
b2a95bab1e Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
2009-08-11 17:04:14 +00:00
kiyohara
1c10f508e4 Support verdex and verdex-pro.
And
    + Support LCD controller.
    + Support SMSC LAN 9117 Ethernet controller.
    + Comment outed 'options GXIO_DEFAULT_EXPANSION'.  As for verdex-pro being
      sold now, this option becomes obstructive.
    + Remove some usb devices in GUMSTIX.
    + Update GUMSTIX.

Also
 Fix ARM ABI in gumstix_start.S.  Thanks Brett Slager <bds at ifgd.net>.
 Calculate RAM size in gumstix_start.S.
2009-08-09 07:10:13 +00:00
kiyohara
eb34e284af Fix matching by improper driver.
see http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html

And remove some white-spaces.
2009-08-09 06:12:33 +00:00
dyoung
57ba504b86 device_t/softc split. Compiled, but never run. 2009-07-21 16:04:16 +00:00
he
5bfe080527 Adapt to changes in sa11x0 code, with struct device * -> device_t changes. 2009-05-31 17:47:26 +00:00
rjs
4c494f7678 Make the following changes:
struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
2009-05-29 14:15:44 +00:00
nonaka
e0297d1ead Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
2009-04-21 03:00:29 +00:00
pgoyette
e59bbd6c14 Missed this file in previous commit. This finished updates required
to enable support of i2c quick_{read,write} operations.
2009-04-20 12:58:33 +00:00
marty
03ff44a9b2 Increase SYMTABLE_SIZE so it'll compile again. 2009-04-14 06:22:31 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl
7cc9af7d64 ANSIfy functions with function-pointer arguments 2009-03-16 23:11:09 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
joerg
f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
kenh
cd2827b367 Improved support for GPIO support on the EP93xx ARM processors.
Specifically:

Support disabling specific pins on specific ports.
Modification of TS7200 kernel config file for GPIO support.
Documentatin for the current and improved GPIO interface (epgpio).
2009-02-27 03:13:55 +00:00
he
cc9abff897 Also include <arm/cpu.h> here for the required definitions of
curcpl() and set_curcpl(), so that kern_ssp.c builds here as well.
2009-02-14 12:44:20 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
he
a5e21717ca Another port which needs <arm/cpu.h> added as in include due to
the new kern_ssp.c.
2009-02-13 21:08:40 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
nonaka
1a6860067f - device_t/softc split.
- use aprint_* function.
2009-01-29 12:28:15 +00:00
nonaka
1eedc8251a Oops, sdmmc related device must be commented out. 2009-01-29 10:33:22 +00:00
nonaka
b70f5811ce Increase SYMTAB_SPACE. 2009-01-29 10:28:37 +00:00
tsutsui
b4d6984248 - WARNSfy
- add src/common/dist/zlib to incpath for build without DESTDIR
2009-01-12 07:45:24 +00:00
briggs
0bc37e80cc Enable lmtemp0/1. 2009-01-09 17:21:19 +00:00
briggs
9a22d28e6e Allow IQ80321-derived systems to provide an m.d. reboot routine.
Use this on the IQ31244 to force a watchdog reset from the M41ST84
if it's been attached.  The generic reset doesn't fully reset the
system whereas the RTC watchdog reset does.
2009-01-09 16:23:59 +00:00
briggs
6d5de89955 Enable the M41ST84 RTC. 2009-01-09 16:21:27 +00:00
briggs
e1e1aca1f8 i80321-based systems use a virtual base of 0xc0000000 so specify
KERNEL_BASE_EXT.
2009-01-05 05:53:06 +00:00
christos
2dacfb04ff remove esl (KIYOHARA Takashi) 2009-01-03 17:46:05 +00:00
kenh
9b6f36d652 If the default watchdog timer period is used, use a timer value
of 8 seconds.  Otherwise wdogctl will return an error.
2009-01-01 03:34:42 +00:00
tsutsui
59f24f5fbc Remove obsolete options SYSTRACE. 2008-12-23 13:04:56 +00:00
kenh
3230ffc8a5 Trim back kernel configuration to fit within TS7200's memory limitations. 2008-12-19 04:23:52 +00:00
he
cc040f5992 Bump SYMTAB_SPACE so that it fits again. 2008-12-14 23:07:22 +00:00
kenh
1d3c0b7c9e Revert changes from revisions 1.3 and 1.4; they make the tsarm platform
fail to boot.
2008-12-14 03:00:59 +00:00
matt
5ef4b69613 Roundup to next megabyte and subtract 0xc0000000 2008-12-07 07:27:27 +00:00
matt
a7b983bf92 Map all of the kernel. 2008-12-07 07:15:03 +00:00
cliff
41bfa2c41d add gemini pseudo-nic and support code. 2008-12-06 05:22:39 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
matt
c98b2a2f4e Add a commented out option of PROCESS_ID_IS_CURCPU 2008-11-21 00:18:57 +00:00
cliff
e3d7c50f06 add gpio driver 2008-11-20 23:31:35 +00:00
cliff
063fc09eca evaluate RMCR correctly for single proc gemini 2008-11-20 23:27:10 +00:00
cliff
c55c9be57e add driver for low level inter-processor-interrupt
provides functions for establish/disestablish IPI ISR,
and function to signal IPI to the other CPU.
2008-11-20 08:02:48 +00:00
cliff
dda2ff2367 add bootstrap ttbl and devmap entries for DRAM Controller
and sanity check memory remap reg to catch possible
mismatch between boot firmware remapping and kernel MEMSIZE, etc.
2008-11-20 07:49:54 +00:00
cliff
16cd61f5e8 use __HAVE_FAST_SOFTINTS now 2008-11-20 07:45:37 +00:00
cliff
82f0028b4e fix botched LKM edits 2008-11-18 18:20:10 +00:00
cliff
0fbe2f865b add option GEMINI_BUSBASE to define kernel offset between
kernel physical addr and (DMA master) bus addr
2008-11-13 07:21:59 +00:00
cliff
3370523d4f - add "wm" interface and "makphy"
- add "re" interface and "rgephy"
2008-11-13 01:39:23 +00:00
cliff
54739f3c1c - comment out wdc, atabus, wd by default; can turn these on if/when wanted.
- add "wm" interface and "makphy"
2008-11-13 01:38:09 +00:00
cliff
bd82d08586 add gemini_cpu1_start() so Master CPU can release Slave to boot.
this gets called early in initarm(); this is as early as reasonable
for now; we might have to puch it back if the Slave ever depends
on the Master to do some setup work or something.
2008-11-13 01:32:48 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
cliff
01b65de4cd - add option GEMINI_SINGLE for single-core system model
- add "re" interface to GEMINI configuration
2008-11-11 19:54:38 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
cliff
283b08193e remove extra 0x10000000 in Ltemp_l1_table value
is leftover from whe we were loading at 0x10200000.
if slave CPU uses this, he will paste his temporary
L1 table in to the master's data.  bad slave!
2008-11-11 06:39:00 +00:00
cliff
ba1eaeccf6 constrain MEMSIZE to avoid stepping out of smallest-case
Gemini CPU Remap Control remapped-private memory size
"bad" things can happen if the gzboot heap is in
non-core-private memory.
2008-11-11 06:32:15 +00:00
cliff
b5cb47739c - nullcom.c provides nulldev-like console device for silent gzboot
- GEMINI_dram_0x01600000/Makefile uses nullcom, shhh
2008-11-10 20:30:12 +00:00
cliff
ac51de51b3 - slave CPU using LPC UART or console
- don't use VERBOSE_INIT_ARM
- dont configure obio UART
- using intr -1 for now, causes callout interrupt polling
  can use that until serirq from 8712 works
2008-11-10 04:39:43 +00:00
cliff
129e7690e8 master cpu does not need LPC stuff, comment out for now 2008-11-10 04:37:14 +00:00
cliff
3b02e84035 - GEMINI_CONSOLE_VBASE renamed to GEMINI_UART_VBASE 2008-11-10 04:35:25 +00:00
cliff
5f656fb56e - use actual device address defines instead of abstract console defines
in mmu_init_table\gemini_start.S and devmap[]\gemini_machdep.c;
  this allows some flexibility e.g. to map 'em all, which is useful
  e.g. when using obio uart to debug lpc uart.

- add mmu_init_table entries for Gemini global regs, lpchc, and lpcio
  these are needed to consinit() when console is lpc uart
2008-11-10 04:33:42 +00:00
cliff
23f46ff40f - use actual device address defines instead of abstract console defines for in mmu_init_table\gemini_start.S and devmap[]\gemini_machdep.c;
this allows some flexibility e.g. to map 'em all, which is useful
  e.g. when using obio uart to debug lpc uart.

- add mmu_init_table entries for Gemini global regs, lpchc, and lpcio
  these are needed to consinit() when console is lpc uart

- now have 2 versions of consinit, one for obio uart,
  the other for lpc uart; we use CONSADDR to determine
  which gets compiled.

- remove a useless bus_space map/unmap from obio uart version of consinit
  comcnattach() will do his own...
2008-11-10 04:30:46 +00:00
cliff
fe95ceb60e these kernel configs are lmeant to be used to create flashable memory disk rooted
embedded kernels using non-SMP master/slave dual core division of resources.
still very much in progress at this time.
2008-11-09 09:39:18 +00:00
cliff
443abea81b - use option GEMINI_MASTER to pick up clock, icu
- ATADEBUG now here but commented out
- deconfigure timer#1 now that system clock and stat clock are combined
- add umass and wd for use w/ ehci
- uncomment wdc0, wd1; add atabus and wd* for use w/ wdc
- warning the gzipped binary GEMINI kernel image will not fit  in a 1MB flash area, even gzipped
2008-11-09 09:36:08 +00:00
cliff
ed27a42072 - initarm progress putchars and printfs are now #ifdef VERBOSE_INIT_ARM
- use GEMINI_SLAVE, GEMINI_MASTER defines to distinguish between
  primary and secondary CPUs, who owns what devices, etc.
- add short delay()s to allow console printf output to drain before reset
  unless if ref_sc is not yet initialized, in which case tough.
- add devmap entriy for LPC
- add devmap entry for RAMDISK if MEMORY_DISK_DYNAMIC is defined
  i.e. if the ramdisk is external to the kernel, in which case
  we "know" where is lives by agreement with firmware.
- call md_root_setconf() if MEMORY_DISK_DYNAMIC is defined
2008-11-09 08:49:40 +00:00
cliff
a80e63a8a0 add defines for LPC and RAMDISK VADDRs for use in devmap 2008-11-09 08:40:59 +00:00
cliff
8e3f3d7b7b those progress putchars are now #ifdef VERBOSE_INIT_ARM 2008-11-09 08:39:31 +00:00
cliff
583e22f8aa remove (unused) KERNEL_BASE_EXT option 2008-11-08 09:42:46 +00:00
rafal
dba38eab03 Explicitly set LOADADDR of bss/sbss so naiive bootloaders (cough, hpcboot)
can deal with the BSS/SBSS of kernels linked with PA != VA.
2008-11-07 16:23:58 +00:00
cliff
e88243d4c8 rip out some more brinngup debug cruft 2008-11-01 07:58:33 +00:00
cliff
84dc474c3c in initarm(), remove some bringup debug stuff, and clean up
progress markers; they are still useful for now.
in cpu_reboot() use Gemini Global Reset Control register to reboot system
geminiwdt_reboot() is no longer needed, removed.
2008-11-01 07:43:19 +00:00
matt
64cf39e420 No need for md. 2008-10-30 16:25:22 +00:00
cliff
f548211cf6 add INSTALL configuration variant for GEMINI platform 2008-10-30 15:37:24 +00:00
cliff
4ec24833ec fix, use += when adint to SUBDIR list 2008-10-30 15:33:42 +00:00
cliff
1913f7ba99 add gzboot support for gemini
GEMINI_dram_0x01600000 defines inflation from concatenated
gzboot & netbsd.bin.gz at sdram 0x01600000 to 0x00200000

note that ns16550.c INB() and OUTB() macros now have
"mult 4" type 4 byte regsiter offset stride
if NS16550_AX4 is defined.  this is needed for gemini,
and was OKed by gimpy.
2008-10-30 06:23:12 +00:00
matt
6577340ba4 Switch to new icu/gpio code. 2008-10-30 04:27:35 +00:00
matt
7c8bb98a3b Fix copyright. 2008-10-29 17:22:54 +00:00
matt
b00e536f9e Disable fast softints for now. 2008-10-29 03:53:31 +00:00
cliff
bc9d49c917 reclaim (uvm_page_physload) memory from start of DRAM to kernel phys load addr, 2008-10-28 22:34:39 +00:00