Commit Graph

283 Commits

Author SHA1 Message Date
scole
90ac05fa24 Fix some comments and add new comment explaining probable bug in cpu_switchto(). Not sure of a fix for it yet 2016-12-26 19:46:59 +00:00
scole
3ac5d95c18 make kernel compilable after recent uvm changes 2016-12-23 17:26:43 +00:00
cherry
3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
cherry
e08917ef90 switch all ports to use uvm_init.c:uvm_md_init()
uvm_setpagesize() is now subsumed within this funciton.
2016-12-22 14:47:53 +00:00
christos
aeeab7b8af Descend into compile 2016-12-18 02:26:12 +00:00
christos
9383f03afa XXX: Can't do PIE yet because of gp relocation in start.S 2016-12-17 18:41:13 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
scole
53744582f1 For ski, break into debugger instead of exiting 2016-11-22 22:50:32 +00:00
jdolecek
e1d3e1b041 add isa_intr_establish_xname() to MD isa headers so that it can be used
by MI drivers
2016-10-18 22:04:33 +00:00
jdolecek
f52dcd49ca remove last isolated islands using BUS_SPACE_BARRIER_SYNC and
BUS_SPACE_BARRIER_X_BEFORE_X - these were only ever defined for mips and ia64,
and never actually implemented even there
2016-09-15 21:45:37 +00:00
maxv
631d00ff2f Two uninitialized vars, found by brainy. The former is similar to the one
I fixed in ia64/stand/efi/libefi/devicename.c. I don't know how to fix the
latter, so just add a comment. I will probably file a PR for this one.
2016-08-15 09:06:39 +00:00
maxv
1b256e1a4d Uninitialized var, found by brainy. I haven't tested this change, and it
may not be the perfect way to fix it. But it seems correct enough.
2016-08-15 09:00:52 +00:00
maxv
eebd41a9d2 Uninitialized var, found by brainy; not tested, but obvious enough 2016-08-15 08:24:05 +00:00
scole
982d96b005 Add volatile flag which might help with ski emulator and longjmp, ok'ed by <joerg> 2016-08-12 02:08:20 +00:00
scole
f3bf736e8f Rename some functions so any atomic ops from this file and/or <sys/atomic.h> can be used. May want to pare overlap in the future, but let's leave both options for now 2016-08-09 13:45:45 +00:00
scole
4fe2c01fd5 Import later FreeBSD version, add note about atomic.S which contains similar functions. 2016-08-08 17:44:24 +00:00
scole
5561bf4b9e Remove unused functions pte_atomic_clear() and pte_atomic_set() 2016-08-08 17:20:17 +00:00
scole
544d77a7cd Import FreeBSD update 2016-08-08 12:25:35 +00:00
martin
76dddc0ed2 Remove unused include of sys/tree.h 2016-08-06 21:13:30 +00:00
scole
cdfb7623f2 PR port-ia64/51261
Put skiload loader.efi loader.sym in /usr/mdec
2016-08-05 17:08:10 +00:00
scole
24d1a025cf PR port-ia64/51261
Add pci_enumerate_bus stub so kernels will compile
2016-08-05 17:04:52 +00:00
scole
045f07da73 PR port-ia64/51261
Import more variables from FreeBSD that will be needed later
2016-08-05 17:04:16 +00:00
scole
a690c1e34d PR port-ia64/51261
Sync with FreeBSD, no functional changes
2016-08-05 17:02:59 +00:00
scole
209a1b3bcb PR port-ia64/51261
Add pci_enumerate_bus
2016-08-05 17:01:56 +00:00
scole
bea6fe222d PR port-ia64/51261
Add __fpregset_t __gregset_t _UC_MACHINE_PC stubs
2016-08-05 17:01:13 +00:00
scole
01e980a512 PR port-ia64/51261
Add mb_read mb_write mb_memory
2016-08-05 16:59:26 +00:00
scole
7ae46ccb2d PR port-ia64/51261
Add macro R_TYPE() stub
2016-08-05 16:58:33 +00:00
scole
a76d63071c PR port-ia64/51261
Remove local acpi_func.h as common version exists
2016-08-05 16:56:43 +00:00
scole
cbe090683e PR port-ia64/51261
Use common/lib/libc/arch/ia64/string/bzero.S and other string functions
2016-08-05 16:53:36 +00:00
scole
a1b9a5a3b3 PR port-ia64/51261
Add procfs_getcpuinfstr()
2016-08-05 16:51:56 +00:00
scole
f8171c7d04 PR port-ia64/51261
Add cpu_coredump() stub
2016-08-05 16:50:07 +00:00
scole
b4897b3e7e PR port-ia64/51261
Add pcibus so kernels will compile.  Required for acpi now
2016-08-05 16:48:04 +00:00
scole
fc0e77863a PR port-ia64/51261
Import later version from FreeBSD
2016-08-05 16:45:50 +00:00
scole
693c3770f5 PR port-ia64/50719
Remove duplicate EFI files for ia64
2016-08-04 18:07:43 +00:00
scole
14a34a34ce PR port-ia64/49717
Minimal changes needed to add nfs netboot support
2016-08-04 16:22:40 +00:00
dholland
e0ba28d784 Speed limit 80. 2016-07-31 19:33:18 +00:00
dholland
d6aeeea295 KNF 2016-07-31 19:22:25 +00:00
dholland
b6673285f7 Instead of testing for unsigned < 0, compare before subtracting.
Reset of PR 51297 from David Binderman.
2016-07-31 19:12:41 +00:00
dholland
d31a64a071 Don't check for unsigned variables being less than 0 in
patchunwindframe(). Instead, check before subtracting, which in this
case means at the call site.

It would probably be better to change the call signature so the
subtraction happens inside patchunwindframe(), but since I don't
really know exactly what this code is trying to do I'm not comfortable
changing it.

Issue 1 in PR 51297 from David Binderman.
2016-07-31 19:10:54 +00:00
mrg
5e0b173689 add a definition for _UC_MACHINE_PC which libasan wants.
XXX: i'm not 100% sure i picked the right register.
2016-06-30 01:41:05 +00:00
nonaka
6af4cd3352 Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi. 2016-06-21 11:33:32 +00:00
dholland
626c0685a4 PR 51183 David Binderman: simplify redundant conditional 2016-05-30 02:32:19 +00:00
christos
4b31d24b7f From scole_mail:
So here is a patch to get basic ski console output working.  The ski
simulator was decoding the wrong registers in ssccnputc() due to
automagically inlined ssc() which contains a "break" simulated system
call.

The ski loader "skiload" has almost exactly the same inline assembly
call for ssc(), but for whatever reason, (maybe ssc() and
ski_cons_putchar() are in different files?), the ssc() function didn't
get inlined and I/O worked fine.
2016-05-13 13:40:55 +00:00
mrg
65f5251eae remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for.  very few other targets claim they're done so just remove these.
2016-03-22 08:25:22 +00:00
christos
ff4ea0ba8c PR/50736: David Binderman: Check bounds before dereferencing. 2016-02-01 17:38:31 +00:00
christos
d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos
4d497c90e6 Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
2016-01-23 21:22:13 +00:00
msaitoh
605f564f52 PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific
2015-10-02 05:22:49 +00:00
christos
5020ab68d5 Provide access to pc/sp/syscall-return registers like we have for mcontext 2015-09-15 15:49:02 +00:00
uebayasi
ea72de740f Order library object build. 2015-09-07 03:44:19 +00:00